0% found this document useful (0 votes)
8 views2 pages

Linux Command Line Basics Guide

Uploaded by

anandpalani1818
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Linux Command Line Basics Guide

Uploaded by

anandpalani1818
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Folder path = /home/anand/linux/basic.

txt

 LS and CD
1. ls linux = list all filles
2. mkdir linux= create a folder
3. ls -l = show the files with details
4. ls -s = show the file size
5. ls -t = modification time
6. ls -r = reversing the sorting order
7. pwd =present working directory
8. cd file name =change directory
9. cd /path_name = go to specific path
10. cd .. = one step back

 Make dir and Remove


11. mkdir linux = create a folder
12. mkdir -p a1/b1/c1 = create a nested folder
13. rmdir linux = remover the empty directory
14. rm [Link] = remove the file
15. rm -r linux = remove folder and file

 File,copy,move
16. touch [Link] = create a empty file
17. cp [Link] ../anand/[Link] = copy a file
18. cp -r anand/ a1/b1/ = copy a folder
19. mv linux/[Link] a1/ = move a folder
20. mv [Link] [Link] = rename folder
21. cat [Link] = display the content
22. vi [Link] = editor file vim or vi
23. nano [Link] = editor file
 HardLink and softlink
24. ln [Link] [Link] = hardlink can delete a folder that’s could not affect the
another folder
25. ln -s anand.3 anand.3x = soft link can remove the origina folder that’s affect the main
folder its could not work
26. alias name=”…….” = Its used give a alias name in code or path etc
27. top = task manager show usage
28. ps = process status = show running process
29. ps -aux = its used to showing currently running file with process id
30. kill -9 process id = stop the running process 9 – is a force kill
31. tail = its used to shows the last content in the file
32. tail -f = its show the automatically updating contents in the file

 Words count & Sort


33. wc = show tha how many words,line and count the letters
34. wc -w ,wc -l , wc -c
35. sort file name = show the asc order
36. sort -r filename = showing the file il reverse
37. sort -n and sort -nr = sort number asc and desc order
38. tail = showing last 10 line
39. tail -n 5 = showing last 5 line
40. head = showing first 10 line
41. head -n 5 = showing first 5 line

 grep – global regular expresion


42. grep = matcing pattern
43. grep -r = searching a pattern inside the folder
44. grep -i = ignore a case sensitive
45.

You might also like