In this post, we will discuss some more basic commands of Linux. I hope you have already gone through Linux commands Part I.
df command in linux:
df command in linux gives information about the amount of free spaces in the filesystem.

free command in linux:
it gives information about free spaces and used spaces and swap space too.

cat commadn in linux:
it shows the content of a file on command line.
e.g. let's make a file called file.txt

and put some content there. then use cat command.

wc command in linux:
it shows the information about the number of lines, words and characters in a file.

There are mainly three operations in this command:
- wc -l
- wc -w
- wc -c

grep command in linux:
it helps in searching content in a file.

you can read more about grep at grep tutorial
cp command in linux:
it is used to copy file and directories.
Synatx:
cp source destination
we are going to copy file.txt to our desktop.

Comments
Post a Comment