Linux Commands for Beginner
Linux Commands -
1 - uname : it will give details about your sysytem.
2 - pwd(present working directory) : print current working directory
3 - cd : to change directry
4 - cd / : to go to root directory
5 - ls : to list all directory
6 - ls - l : to show the permission of all files in the current directory
7 - ls -a : to see hidden files
8 - whoami : to see who you are XD
9 - whereis python : to see the path of particular
10 - touch a.txt - to create a file named a.txt
11 - nano a.txt : to open a.txt in nano text editor
12 - cat a.txt : to read the file in terminal
13 - head a.txt : to read the file in terminal but only 10 lines I guess.
14- history : command to check which command have you used
15 - apt-get install apache2- to install any software like apache2
16 - service apache2 start : to start the service apache2
17- service apache2 stop : to stop the service apache2
18- service apache2 restart : to restart the service apache2
19 - apt-get --purge remove apache2 : to uninstall purge
20 - apt-get autoremove : to remove unwanted dependencies
21 - apt-get autoclean : clean left residual files that didn’t need anymore, as we already have removed software uses those.
22 - mkdir demo - it will create demo folder
23 - rm -r demo - remove demo folder
24 - jobs - to check which process are going
25 - pkill mysql - to kill the process
26 - killall - to kill all process
27 - chmod 755 filename - to change the directory permission
28 - cp a.txt demo - copy file a.txt to demo folder
29 - mv a.txt demo - move a.txt to demo folder
30 - clear - to clear the screen
31 - dpkg --get-selections - to see installed application
0 Comments
Please do not enter any spam link in comment box.