Here are the typical Linux commands you would use when you wake up in the morning and are having your first cup of coffee while checking your remote server(s).
Use ssh username@hostname or use ssh username@ipaddress to login to your remote servers when you wake up in the morning.
After logging in it is normally best to cd or “change directory”¯ into your log file directory and check log files.
Now, it is always a good idea to list the files in the directory you are in using the ls command, here we use a long listing ls -l with wildcard match
Using the cat command we can take a look at the contents of text files. In this case, we look at one of the log files.
Seeing nothing of interest or out of the ordinary in our various log file(s), we simply truncate the log files down to 0 bytes like so: truncate -s 0 *log
Let's quickly use the top command to see if there is anything that looks unusual, inspecting web server and database processes, or whatever is your critial application
To leave the top command, press ^c better known as “control c”¯. ^c will often get you out of a jam when you are “stuck”¯ and need a way out
Use the clear command to clear your terminal screen at anytime.
Next we cd ~ where ~ is pronounced “tilda”¯ and change to our home directory. Then we pwd, or “print working directory”¯ confirming filesystem location.
That's all for this version of “hello world”¯ and our “good morning tasks”¯. Let's type exit and logout of here!
Thanks for watching.
Presented by Daemon Media in 1080 HD for UNIX.com