Sitemap
Kaiser Konok

Kaiser Konok

Software Developer, AI Engineer & A Computer Science Student

Learn Command Line in less than 5 minutes

1 min readMar 26, 2022

--

Press enter or click to view image in full size
Command Line

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:

whoami

pwd

If you want to see what is your current directory:

pwd

ls

If you want to see the list of files and folders of your current directory:

ls

cd

If you want to change the directory then just type:

cd directory_name

If 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 filename

mkdir

If you want to create a directory from your terminal then just type:

mkdir directoryname

rm

If you want to delete a file then just type:

rm filename

If you want to delete a folder then just type:

rm -r directoryname

Note: 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:

clear

exit

if you want to exit your terminal then just type the command:

exit

--

--

Kaiser Konok
Kaiser Konok

Software Developer, AI Engineer & A Computer Science Student