# 20 basic commands!

Discover the 20 basic commands that will make your life easier and help you advance your career with Linux.

<table><tbody><tr><td colspan="1" rowspan="1"><p>Commands</p></td><td colspan="1" rowspan="1"><p>Usage</p></td></tr><tr><td colspan="1" rowspan="1"><p>ssh</p></td><td colspan="1" rowspan="1"><p>SSH is used for creating a secure tunnel to another computer from which you can issue commands, transfer data, etc.</p></td></tr><tr><td colspan="1" rowspan="1"><p>netstat</p></td><td colspan="1" rowspan="1"><p>The command is used to see the network status, it shows the status of the network such as TCP, UDP, etc</p></td></tr><tr><td colspan="1" rowspan="1"><p>rm</p></td><td colspan="1" rowspan="1"><p>The command is used to remove a file or directory.</p></td></tr><tr><td colspan="1" rowspan="1"><p>vim</p></td><td colspan="1" rowspan="1"><p>The command is used to edit the files/scripts in Linux.</p></td></tr><tr><td colspan="1" rowspan="1"><p>cat</p></td><td colspan="1" rowspan="1"><p>The command is used to display file content without accessing the file.</p></td></tr><tr><td colspan="1" rowspan="1"><p>hostname</p></td><td colspan="1" rowspan="1"><p>The command is used to find out the machine name in Linux.</p></td></tr><tr><td colspan="1" rowspan="1"><p>whoami</p></td><td colspan="1" rowspan="1"><p>The command is used to see which user is currently logged in.</p></td></tr><tr><td colspan="1" rowspan="1"><p>tar</p></td><td colspan="1" rowspan="1"><p>The command is used to compress the files also known as zip</p></td></tr><tr><td colspan="1" rowspan="1"><p>useradd</p></td><td colspan="1" rowspan="1"><p>The command used to create users in Linux</p></td></tr><tr><td colspan="1" rowspan="1"><p>chmod</p></td><td colspan="1" rowspan="1"><p>The command used to change and set permission to the users, files, and groups</p></td></tr><tr><td colspan="1" rowspan="1"><p>userdel</p></td><td colspan="1" rowspan="1"><p>The command used to delete users in Linux</p></td></tr><tr><td colspan="1" rowspan="1"><p>find</p></td><td colspan="1" rowspan="1"><p>The command used to find content in Linux</p></td></tr><tr><td colspan="1" rowspan="1"><p>head</p></td><td colspan="1" rowspan="1"><p>The command is used to the first lines of one or more files to standard output. Head by default shows the first 10 lines.&nbsp;</p></td></tr><tr><td colspan="1" rowspan="1"><p>tail</p></td><td colspan="1" rowspan="1"><p>The command used to print the last 10 lines by default of a specific file, then stops.</p></td></tr><tr><td colspan="1" rowspan="1"><p>grep</p></td><td colspan="1" rowspan="1"><p>Global regular expression print Command used to search and find matching content in multiple files.</p></td></tr><tr><td colspan="1" rowspan="1"><p>chown</p></td><td colspan="1" rowspan="1"><p>The command is used to change the file group or the owner.</p></td></tr><tr><td colspan="1" rowspan="1"><p>diff</p></td><td colspan="1" rowspan="1"><p>The command is used to find line-by-line differences in files.</p></td></tr><tr><td colspan="1" rowspan="1"><p>sed</p></td><td colspan="1" rowspan="1"><p>The command is used to quickly edit the file content without opening them</p></td></tr><tr><td colspan="1" rowspan="1"><p>zip</p></td><td colspan="1" rowspan="1"><p>The command is used to create an archive of directories and files.</p></td></tr><tr><td colspan="1" rowspan="1"><p>date</p></td><td colspan="1" rowspan="1"><p>The command is used to check the date, time, and region in Linux.</p></td></tr><tr><td colspan="1" rowspan="1"><p>su</p></td><td colspan="1" rowspan="1"><p>The command used to switch users, is short for switch user.</p></td></tr><tr><td colspan="1" rowspan="1"><p>sudo -i</p></td><td colspan="1" rowspan="1"><p>The command is used when super user action is required for example changing permissions.</p></td></tr><tr><td colspan="1" rowspan="1"><p>apt-get</p></td><td colspan="1" rowspan="1"><p>The command is used to install the software packages.</p></td></tr></tbody></table>
