Haven't started using the command line on your Linux machine? Well, you are still away from the biggest charm of Linux. Here are 10 basic commands to get you started with Linux command line.
Rate this news:
Thursday, September 26, 2013:
We always say that the command line is the most powerful feature of Linux and once you have started to work through the command line, trust us you won't even feel like touching your mouse. But if you are a total newbie to Linux, you need something to start with. So here we bring to you 10 basic commands that explains some of the most used Linux commands and their basic usage. And if you aren't aware, these commands are meant to interact with your command like, type you command and press the ENTER to execute.
1. cat: Shows the contents of files to the screen.
Usage: # cat file.txt # Hello World
Also this command can be used to count the number of lines, words and characters in a file: cat | wc -l
- number of lines cat | wc -w
- number of words cat | wc -c
- number of characters To search for a word in a file you can use: # cat | grep
2. df: Check the amount of free disk space on the filesystems. Usage: # df
To get a more easily readable (human-readable) output of the command use: # df -h