Basic linux command for beginers.| Linux | Cloudpradeep
Linux is a best operating system in all over the world . Mainly we know that Linux are using only for developer purpose . But not only Developer use we are also using Linux every where . Coming to the Computer environment mostly 90% of people are using Windows as a daily driver . But also Linux is used in enterprise section . Because it comes with a lot of feature that won't find in other operating system . Like if you install a fresh Windows operating system then there is 80% of chance that a normal user will use a Antivirus software because majority people are using Windows operating system .
Well to get a best package in top MNC company Linux background is a good Background to start . As linux is not popular in normal users so you have to know by doing self-study . Here i am gone share you some basic commands and there uses. I hope you will like this .
Sl. Num | Command list | Use of commands |
1. | ls | It used to list files or directories in linux. |
2. | pwd | It is used to show the Current Working Directory. |
3. | cd < Directory name > | Changing Directory. |
4. | Cd | Go back in Terminal. |
5. | Cd.. | Go Onestep Back. |
6. | mkdir | Creating Folder. |
7. | mkdir -p < Dir name / Dir name1 > | Creating Folder as well as sub folder. |
8. | cat < file name > | Show content of a file |
9. | cat > file name | Redirect or dump content of a file into another file. |
10. | More | It will show minimum content and by pressing enter key for more content . |
11. | head < filename > | For showing First 10 line of a content. |
12. | tail < filename > | For showing last 10 line of a content. |
13. | Tail -f < file name > | Showing the contents of file in realtime from start 10 line. |
14. | clear | For Clearing the terminal . |
15. | Touch < filename > | To create an new file like ( .txt ) . |
16. | rm -rf dir | To delete a folder forcefully . |
17. | rm -rf file | To delete a file forcefully . |
18. | mkdir a b c | To create multiple folder at a same time. |
19. | Cp -rvf dir1 dir 2 | Copy a directory. |
20. | Mv dir dir2 | Move a directory . |
21. | ln | Create hard link. |
22. | Ln -s | Create softlink. |
23. | ls -a | Check all information with hidden path. |
24. | la -l | check file folder with permission. |
25. | rm -rf* | To delete data all at a same time . |
26. | top | Check the task mannager. |
27. | su | switching the user to super user. |
28. | ps | check the process status. |
29. | Ctrl + shift + N | Open a new terminal . |
30. | Ctrl + shif + T | Open a new terminal inside same terminal screen . |
31. | Diff | compare the content of a file . |
32. | Exit | Log out the linux terminal. |
33. | grep | Find a string of a text file . |
34. | less | View a file . |
35. | tar | store, or extract a file. |
36. | vi | Edit files with a simple text editor . |
37. | sudo | To run command or programm with security privileages. |
38. | Ctrl + c | Stop the current command. |
39. | Ctrl + z | stop the current command, resumewith forground or background. |
40. | Ctrl + D | Similar like exit terminal session. |
41. | Ctrl + U | Remove all whole line. |
42. | Ctrl + R | for recent executed command. |
43. | env | Showing the all environment variable. |
44. | df | Display the disk uses summary. |
45. | df -kh | Display the disk uses summary with human readable language |
46. | du | show the directory space uses |
47. | du -sh | Display the current uses summary with human readable . |
48. | free | Show memory free spaces with swap memory. |
49. | Free -m | Display the free spaces in MB format. |
50. | Free -g | Display the free spaces in GB format. |
51. | Free -k | Show the free memory in Kb format. |
52. | Free -h | Display the free spaces with human readable. |
53. | dmesg | Display the bootup messages. |
54. | w | Users currently on the machine and their processes. |
55. | jobs | It listed the background,stoped and running process. |
56. | bg | Display the background process. |
57. | fg | Display the forground process. |
58. | ssh | Taking connection to system remotely. |
59. | telnet | list the filename of a string. |
60. | whois | Geting information about domains. |
61. | dig | Displaying the DNS information for domain. |
62. | wget | Download the retrieves content from web servers |
63. | nslookup | Resolve the DNS of hostname. |
64. | ping | For verify connectivity between system and other tcp/ip device. |
65. | curl | For transfer data to or from a server, using any of the supported protocols . |
66. | cal | Display the calender . |
67. | date | Display the calender . |
68. | uptime | Display the calender . |
69. | uname | Display the linux system information. |
70. | Uname -r | Display the kernel information. |
71. | whoami | Shows who you are logged in. |
72. | Cat proc/cpuinfo | Display the cpu information. |
73. | Cat proc/meminfo | Display the memory information. |
74. | timedatectl | Display the system clock information. |
75. | ifconfig | checking ip details in your system. |
76. | Ip add show | Display the ip address with all network . |
77. | Host < ip host name > | Shows DNS forward lookup entries. |
78. | Host < Dns host name > | Display reverse lookup entries. |
79. | Df -h | Display where you attached your volume for storage purpose. |
80. | Lsblk | Give complete information about disk drive. |
81. | blkid | Display the new storage connecting in a linux system after creating an partition. |
82. | yum | Install package with all dependency prerequire packages automatically. |
83. | rpm | Installing package but without prerequire packages . |
84. | nmcli | Display the network interface for control and mannage the networks. |
85. | systemctl | used to start , stop and control the services. |
86. | chmmod | Command for modify the permission. |
87. | usermod | Command for modify the user permission. |
88. | Ps aux | Listing all the process that running on my system machine. |
89. | Ps aux |wc -l | To check how many number of process is running. |

No comments