10 Common Commands of Linux
There are many distribution of linux is available in market and you will download these at free of cost(open-source). But before using these Operating system you will need to know some common commands of these distributions, if you are beginner and you want to know more about linux and there commands concept then it will be helped you to understand this, more often it will give you control linux with GUI commands line interface (CLI)…
What is Linux ?
Linux is open source Operating System, which is developed by Mr.Linus Torvalds in there computer lab. After that Mr.Linus will open-source it by GNU license and in that license it’s mentioned that you will integrate your code, append , edit, share it with others /friends by mail etc. share systems. Now a days many distribution are developing many flavor of linux, The flavors depending on there kernel version + GUI version most of time the bug/debugging base new Linux will developed .
10 Common Commands
1. ls Command
The command “ls” stands for (List Directory Contents), List the contents of the folder, be it file or folder, from which it runs.
gdjkj@dev:~$ ls Desktop Documents Downloads Music Videos com.c~ examples.desktop Pictures
2. rm COMMAND
The command “rm” (Remove ), remove the contents of the folder, be it file or folder, from which it runs.
gdjkj@dev:~$ ls Desktop Documents Downloads Music Videos com.c~ examples.desktop Pictures gdjkj@dev:~$ rm com.c~ Desktop Documents Downloads Music Videos examples.desktop Pictures
3. Pwd COMMAND
The command “pwd” (print working directory), print the working directory path.
gdjkj@dev:~$ pwd /home/user
4. cd COMMAND
The command “cd” (change directory), change the working directory path.
gdjkj@dev:~$ cd Desktop gdjkj@dev:~/Desktop$
5. cal COMMAND
The command “cal” (calendar) command allows a print the current year & month calendar.
gdjkj@dev:~$ cal February 2015 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
6. Sudo COMMAND
The command “Sudo” (super user do) command allows a permitted user to execute a command as the superuser or another user.
gdjkj@dev:~$ Sudo apt-get install google-chrome password:
7. date COMMAND
The “date” (Date) command print the current date and time on the standard output, and can further be set.
gdjkj@dev:~$ date Tue Feb 3 16:40:29 IST 2015
8. cat COMMAND
The “cat” stands for (Concatenation). Concatenate (join) two or more plain file and/or print contents of a file on standard output.
gdjkj@dev:~$ cat smile.txt ~~~~~~~~ AJAY Kumar Maheshwari :)
9. top COMMAND
The “top” command use for print system information as like windows task manager.
gdjkj@dev:~$ top top - 16:47:18 up 19:33, 2 users, load average: 0.12, 0.26, 0.31 Tasks: 189 total, 1 running, 188 sleeping, 0 stopped, 0 zombie %Cpu(s): 2.0 us, 1.0 sy, 0.0 ni, 96.8 id, 0.2 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 1927628 total, 1377460 used, 550168 free, 33576 buffers KiB Swap: 5858300 total, 91404 used, 5766896 free. 512612 cached Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1498 root 20 0 99160 13016 6680 S 2.0 0.7 8:16.35 Xorg 9471 gdjkj 20 0 205160 17352 12672 S 1.3 0.9 0:00.80 gnome-term+ 2353 gdjkj 20 0 461580 38104 17532 S 0.7 2.0 8:53.82 compiz 8397 gdjkj 20 0 266720 37684 12492 S 0.7 2.0 0:17.29 chrome 1095 mysql 20 0 327620 27088 1276 S 0.3 1.4 1:02.52 mysqld 2084 gdjkj 20 0 48724 6512 2724 S 0.3 0.3 0:49.32 ibus-daemon 2185 gdjkj 20 0 27956 2748 2556 S 0.3 0.1 0:10.44 ibus-engin+ 2659 gdjkj 20 0 921680 175996 48452 S 0.3 9.1 26:14.52 chrome 6884 root 20 0 0 0 0 S 0.3 0.0 0:06.50 kworker/0:2 1 root 20 0 4600 2228 1360 S 0.0 0.1 0:01.67 init 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:02.36 ksoftirqd/0
10. exit COMMAND
The “exit” command use for exit the from the terminal.
gdjkj@dev:~$ exit
Conclusion
when you will know these commands then you can easily handle any Linux distribution/flavor like Debian-Ubuntu, Centos-Open suse .. Will you like this post then please share and comment it… 🙂
It’s a joy to find soeomne who can think like that