To determine which version of Amazon Linux you’re running, you can use the command below: grep -E -w ‘VERSION|NAME|PRETTY_NAME’ /etc/os-release The output...
There is a yum package called yum-utils which contains the package-cleanup command. This command will allow you to pass arguments to it...
When logging into an AWS Linux server you will see a default MOTD (message of the day) that looks like the example...
To list the packages installed on a Ubuntu server or desktop, you use dpkg, which is the equivalent of RPM on a...
Restarting the network service on Ubuntu is similar to Red Hat or CentOS. To do so from the command line, you can...
To run graphical mode on your Ubuntu server or desktop, you can run the following command: startx or init 5 This will...
Using awk you can specify which lines you print. If you wanted to print lines 1-10, you could do this: awk ‘NR
Using the awk command, you can do many useful things, one of which is printing only what you want. If for example,...
Using MySQL in vi mode is very useful as you can easily search for, modify, and run previous commands quickly. Enabling it...