Useful Linux commands for beginners

If you are switching from Windows to Linux based operating system, then it might be difficult in early days to get hang of it. Here are some commands that will be useful.

  1. If you want to find out size of current directory, just type

2. Check your disk usage

3. See all files and directory size in current path

4. Truncate log files

5. List content of a directory using ls command

6. If you want to know about a command, you can take of man command, for example if you want to go into details of ls command, just type

It will give you an output something similar to this

 

I will be updating this with more useful commands as and when I found.

Thanks