Daily command lines tools that everyone should know

By techKnowHow | technocraft | 25 Dec 2020


Merry Christmas Friends, today I come back with another useful blog for all the beginner programmers and tools that should be in the tool kit of any programmer or even common user.

Lets talk command lines today:  The most common and frequently used command that all the Unix or Linux based operating system users should know as they give some extra power capabilities in your hand to do things from the command line instead of wasting time and processing power on GUI( Graphic user interface) to make you a click click windows user(no pun intended).

First one in our list is : 

ls -> This command is used when you want to list all the folders, files and documents in your current directory.

E.g Below you can see my UBUNTU screen when I type "ls" command the result is list of all the files and folders that are sitting in my current directory.

Here Desktop, Downloads, Music and so on are my folders colored as blue and example.desktop is a file since it is colored white. f16b4c5b3c1c6002501ec3e4bd3f263b64c3634fe4e058c9bac30e3a567abb07.jpeg==============================

For MAC users again same just type ls command and see the magic of the command that it will list all the folders and files in the current directoryc8e73d88b43809a9396ed88515caa5f4511c2f60b645185992533913eeddc876.jpeg

Lets now see our second command line for today :

ls -l -> This command is nothing but just a simple extension of the previous "ls" command which means please Mr. command line interpreter give me the list of the directories and objects within my current working directory along with some other properties associated with each of those files and directories.

e.g: Below when I hit "ls -l" command in my mac terminal the result that I see is same as above but this time we can also see some extra information like how much size of these directories in Bytes here its 4096 bytes and other information that I will not discuss here just to keep this blog simple and easier for beginners. For advanced users please let me know in the comment box what other information do you guys see in the terminal below.260ebbf05f0cb90ea7326bcac7886da3b623675e0b419347ff59ae1a9bb094eb.jpeg

Lets now see our third command line for today :

ls -al -> This command is nothing but just a simple extension of the previous "ls -l" command which means please Mr. command line interpreter give me the list of the directories and objects within my current working directory along with some other properties associated with each of those files and directories also display me all the hidden directories and files as well.

e.g: Below when I hit "ls -al" command in my mac terminal the result that I see is same as above but this time we can also see some hidden files and folders, way to identify these hidden files and directories is by dot "."sign which you will see at the start of the name of each hidden file and folder.

ce6a10623b429374a4186dbcf0c4850d36ca33e9d4f45475e4c802e66f385ec8.jpeg

Lets now see our fourth command line for today :

pwd -> This command simple means "print working directory" I believe its is very much clear what it says is that it will give you the path or location of the directory in which you are at present.

E.g: Below when I hit "pwd" command in my mac terminal the result that I see is "/home/onworks" which means my current working directory in which I am right now is under root "/" followed by "home" , followed by "onworks"

b1bff3d7d4242aee8f7f1b6b10a96be8a2886c63a66c5a8faaf97e57b7678df0.jpeg

Lets now see our fifth command line for today :

cd -> This command simple means "change directory" again its very much clear from the way it says that Command line interpreter please change my directory usually it is followed by the name of the directory or path in which you want to jump to.

E.g: Below when I hit "cd Documents/" command in my mac terminal my interpreter quickly send me inside Documents directory which I then confirm by using our previous command "pwd" which rightly gives the correct location of the working directory inside "/home/onworks/Documents"

faf4604b539438a7f705a62fca9a18e1645c938f02c65a1b8093a52f7f2176c7.jpeg

That's all for today folks please stay connected for further upcoming updates over this blog and much more. Also thank you very much for supporting my channel. Merry Christmas to you and your loved one... Peace

How do you rate this article?

9


techKnowHow
techKnowHow

All the latest technology updates I will bring to you in a very useful and informative way. Be it from Microsoft, Dell , Amazon or elsewhere.


technocraft
technocraft

We will share all the possible latest software technologies be it in cloud or on-premises related to data science, integration, software engineering, 5G, electronics and much more, please stay connected for our upcoming posts.

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.