Learn Command Line in less than 5 minutes
This tutorial covers all the basic commands that a programmer (or non-programmer) needs in his day to day life.
whoami
If you want to get the username of your computer:
whoamipwd
If you want to see what is your current directory:
pwdls
If you want to see the list of files and folders of your current directory:
lscd
If you want to change the directory then just type:
cd directory_nameIf you want to go one folder back then just type:
cd ..Get Kaiser Konok’s stories in your inbox
Join Medium for free to get updates from this writer.
touch
if you want to create a file from your terminal then just type:
touch filenamemkdir
If you want to create a directory from your terminal then just type:
mkdir directorynamerm
If you want to delete a file then just type:
rm filenameIf you want to delete a folder then just type:
rm -r directorynameNote: If you remove something it won’t go to the recycle bin. It is permanently gone
clear
If you want to clear your terminal then just type the command:
clearexit
if you want to exit your terminal then just type the command:
exit






