How to copy data over SSH with secure copy (scp)
scp or secure copy is a command used for sending files over SSH. You can copy files between computers, say, from your local PC to a server or vice versa. It’s a very secure method of copying files…
Read more »How do I copy file names starting with a dot in Linux?
UNIX / Linux file systems do not have a hidden file attribute. A file or folder is typically hidden by using a period as the first character in the file name i.e. .hiddenfile . In order to list all files…
Read more »Dell PowerEdge R210 II hardware RAID monitoring (Dell PERC H200 RAID controller)
Moore’s Law marches on relentlessly but the there is plenty of life left in the old PowerEdge R210 / R210 Gen II servers. The cost of cloud versus bare metal still makes physical machines a no-brainer if you’re comfortable…
Read more »How to delete files and directories using the Linux command line
The rm (remove) command is used to delete files and directories. Deleting files is a fundamental operation for a sysadmin. Be careful with the command because it does not prompt for a confirmation unless the -i option is…
Read more »How to install Samba server and configure a network share
Samba is a very useful tool. It provides file and print services between computers running Microsoft Windows and computers running Linux. It can integrate with a Windows domain too. Samba is a re-implementation of the SMB / CIFS…
Read more »How do I get the size of a directory using the command line?
The du command (disc usage) command reports the sizes of directory trees inclusive of all their contents and the sizes of the individual files. It’s a useful command to track down directories consuming large or excessive amounts of…
Read more »How to make Symbiosis to generate a config per domain
Symbiosis hosts sites on a server in one of two ways, based on the IP address that site has configured. If it uses one of the server’s primary IP addresses, then it is assumed that the site is…
Read more »How to change the default SSH port in Linux
SSH or the Secure SHell daemon typically operates over port 22 TCP. However, you might want to change the default port for your Linux server, in order to achieve security through obscurity because the standard port is continuously…
Read more »ifconfig command missing from Debian Stretch
The ifconfig command has been deprecated in favour of the iproute2 (the ip command), therefore missing by default on Debian 9. Similarly, the arp , route and netstat commands are also deprecated. The announcement was made back in 2009. If you…
Read more »Linux terminal hacks
Here are some useful terminal hacks. Aliases Have a lengthy command and want to make shorter? Use aliases. You can add aliases to your .bashrc file so that they remain permanent. Consider the following command sudo apt-get install…
Read more »