UI24CS07
Assignment – 1
Write and perform 50 different Linux commands. Submit the pdf file with explanations for
the commands and their output.
1. ls : list of all files and directory
2. ls -l : list of all files and directory with permission and other detail
3. ls -a : show hidden files also
4. ls *.log : show files with extention “.log”
5. ls p* : show files name that strat with “p”
6. ls *p : show files name that end with “p”
7. gedit : create a file
8. mkdir name : create a directory
9. cd name : go to the “name” directory
10. cd path : go to this path
11. cd .. : exit to the current directory
12. pwd : show path to the current directory
13. touch filename : create empty file
14. echo “ui24cs07” : print ui24cs07on the screen
15. cp 1stfilename 2ndfiename : copy 1st file in the 2nd file
16. mv filepath path: move file to the given path.
17. mv path samepathwithdifferentname : change the name of the file with same path and
different name
18. rm filename : remove file
19. clear : clear our screen
20. rmdir name : remove empty directory
21. gcc -o 1 filename : compaile the file
22. ./1 : run the file
23. cat filename : show content of the file
24. find filenameORdirectory : find directory or file in the current directory
25. who : show who log in to the system
26. whoami : show username
27. sudo apt install toolname : install tool in our system
28. head filename : show first 5 line of the file
29. tail filename : show last 5line of the file name
30. nano filename : open file and edit
31. wc -l : count lines of the output
32. uname -a : show system information
33. ping google.com : show network info.
34. sort filename : sort the file lines
35. date : show current date and time
36. history : show history of the command
37. grep word filename : find the word in to the file
38. ps : list of running programme
39. reboot : reboot system
40. shutdown now : shut down system
41. wc file.txt : count line in to the file
42. which python : show the path to go the python directory
43. python –version : give the version
44. chmod 700 filename : change the permission of the file
45. groups : show group name
46. man command : manual for command
47. help : give the help
48. tr : The tr command is a UNIX command-line utility for translating or deleting characters.
49. wget : A tool that allows users to download files from the internet directly to their active
directory.
50. passwd : change the password
-------------------------------------------------------END-----------------------------------------------------------