The Essential Linux commands that every user needs to know

Linux Terminal
(Image credit: Future)
2

Linux runs on hardware as diverse as the Raspberry Pi and powerful supercomputers, making it a flexible choice of operating system. Linux can be used via a graphical user interface similar to Windows or macOS. Or it can be used via a powerful terminal / command line.

The command line interface provides you with a lot more control over the computer than you can get using the GUI. Many important tasks are easier, quicker or only possible via commands. That's why, below we've listed the most important commands for navigating the file system, installing software, editing files and monitoring performance.

Latest Videos FromTom's Hardware
TOPICS
Les Pounder
Associate Editor

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".

  • Grobe
    Additional tip that can save some time:
    Hotkey Ctrl+D does as default the same as the Exit command. Very handy when logged into another user account or via ssh to a remote computer.
    Using sudo -i to log into the admin account. I prefer doing this over sudo because then it keeps separate command history for root user.
    Reply
  • JayGau
    I can't believe you showed how to create aliases with the command line, specified that it will be deleted if the system is switched off (see * note below about this) and don't even tell how to add them to the .bashrc to make them permanent.

    The user's .bashrc (or the .cshrc if you use tcsh) is loaded every time you launch a terminal, so if you open the file with nano or vim (nano ~/.bashrc), add the alias line to it and save the file, every time you will open a new terminal the line will be executed and you will have your alias ready to be used. If you want it to be available in the current terminal (the one you used to edit the. bashrc), just type

    source ~/.bashrc


    *aliases created with a command line are actually only defined in the terminal in which they get created and will be deleted if you close this terminal, not only after a system shutdown.
    Reply