0% found this document useful (0 votes)
19 views13 pages

Assignment-1 22BDS0170 Compressed

Uploaded by

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

Assignment-1 22BDS0170 Compressed

Uploaded by

Thanu athitya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Operating Systems

Basic Linux Commands

Name:Thanu Athitya M
Reg No:22BDS0170

Aim: To perform basic commands in Linux.

1. mkdir – creates a new folder/directory

2. cd – navigates to the current folder/directory


3. touch – creates an empty file in the particular folder/directory

4. ls – list the files present in the current directory

5. clear – clears the terminal


6. pwd – Gives the current working directory path

7. cat – Prints the content present in the text file in terminal


8. echo – displays the lines of text which are passed as arguments

9. echo – rewrites the content of whatever has been written in the existing document
10. wc – count the number of lines, words and characters in the file.

11. cp – copy the contents of one file to another file


12. mv – move the files to the current working directory.

13. date – shows the current date

14. file – tells what sort of file it is


(This is the current working directory for the above command)

15. cal – to display the current month’s calendar

16. Sleep – to pass the current terminal

17. cc – compile a C program


(The c program file has been compiled.)

18. quota – Shows how much disk space has been left

19. rmdir - Delete a directory.


After deleting demo folder:
20. rm – Delete files

21. uname – check the complete OS information of the system.


22. ps – check the active processes in the terminal.

23. whoami – provides basic information, which is extremely useful when working on multiple systems.

24. Sort – sort the data in alphabetical order in a specified file.

25. cmp – Compare two files and display the line and byte difference

(Demo.txt)

(Demo1.txt)

26. diff – Displays the different contents present in two files.

(Taking the example of the above two text files – Demo.txt and Demo1.txt).
27. grep – used to find a specific string in a series of outputs.

(Taking the example of Demo.txt)

28. more – used to view the contents of a file one screen at a time.

(Taking the example of Demo1.txt)

29. df – used to display the amount of disk space used and available on the file systems.

30. man – display the manual page for the specific command.

You might also like