CLI basics


Suck it Up and Do as Ordered.

Add a user to the duoers file (so he can use Sudo to force commands).

sudo nano /etc/sudoers

Sudo bang bang

If you forgot the add 'sudo' before a command, the easy way is not rewrite the whole command but to add the following (!! [bang bang] means: 'add this to my previous command, first this than the previous command).

sudo !!

The !! parameter represents the latest CLI command.

Show technical server (hardware) information

To show information about the linux system hardware, run the following command.

sudo lshw



GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.

Wget is non-interactive, meaning that it can work in the background, while the user is not logged on. This allows you to start a retrieval and disconnect from the system, letting Wget finish the work. By contrast, most of the Web browsers require constant user's presence, which can be a great hindrance when transferring a lot of data.

Wget has been designed for robustness over slow or unstable network connections; if a download fails due to a network problem, it will keep retrying until the whole file has been retrieved. If the server supports regetting, it will instruct the server to continue the download from where it left off.

Source: Ubuntu ManPages > Wget

Create a complete website mirror through CLI
wget -mk


  • -m == Mirrors all public available files
  • -k == Write recursive to mirror location (otherwise files will be linked to the original site)
Language errors

To reconfigure the language issue within Ubuntu / Devian, run the following code and you have a 50/50 chance it will fix the bloody error message.

dpkg-reconfigure tzdata
Reverse search in last used commands

You can search in previously used commands inside the CLI interface.

ctrl + R