Linux commands part II





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.
df command



  • free command in linux:




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



  • cat commadn in linux:




it shows the content of a file on command line.

e.g. let's make a file called file.txt
touch command in linux

and put some content there.  then use cat command.
cat comand



  • wc command in linux:




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

There are mainly three operations  in this command:

  1. wc -l

  2. wc -w

  3. wc -c





wc command in linux

 





  • grep command in linux:




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


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.


 

cp command in linux

 

Comments