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

Os Ass1

This document is a lab assignment for Operating System Principles (CSI1002) detailing a list of 20 Linux commands along with their descriptions. It also includes a set of questions related to using these commands for various tasks such as displaying the current directory, navigating files, and managing directories. The assignment is intended for students to practice and demonstrate their understanding of Linux command-line operations.
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 views14 pages

Os Ass1

This document is a lab assignment for Operating System Principles (CSI1002) detailing a list of 20 Linux commands along with their descriptions. It also includes a set of questions related to using these commands for various tasks such as displaying the current directory, navigating files, and managing directories. The assignment is intended for students to practice and demonstrate their understanding of Linux command-line operations.
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

LAB ASSIGNMENT-1

OPERATING SYSTEM PRINCIPLES

CODE: CSI1002

LAB: L53+L54

REG NO: 24MIC0084

NAME: SUTHARSAN P

I. RANDOM 20 COMMANDS:
1. ls:

Description: Lists all files and directories in the current


working directory.

2. pwd:

Description: Displays the current working directory


(the full path of where you are in the file system).
3. clear:

Description: It clears the commands executed and gives a


empty terminal page

4. mkdir:

Description: Creates a empty directory in current location.


5. date:

Description: Gives the date and time set on the system.

6. rmdir directory:

Description: Removes that directory permanently.

7. ps:

Description: Displays a snapshot of the currently running


processes for the current user in the terminal session.
8. id:

Description:Displays the user ID (UID), group ID (GID),


and all group memberships of the current or specified
user.

9. man man:

Description: Opens the manual page for the man


command itself, explaining how to use the Linux manual
system.

10. more filename:

Description: Displays the contents of a file one screen at a


time, allowing you to scroll down using the spacebar.
11. env:

Description: Displays all environment variables of the


current shell session along with their values.

12.hostname

Description: Displays the name of the computer (host) on


the network.

13. groups:

Description: Displays all the groups the current user is a


member of.
14. file filename:

Description: Determines the type of a file (e.g., text, binary,


image).

15. history:

Description: Displays a list of recently used commands.

16. df -h:

Description: Displays disk space usage of all mounted


filesystems in human-readable format.
17.uname -r:

Description: Shows only the kernel version of the


operating system

18. uptime:

Description: Shows how long the system has been running


and system load averages.

19. wc filename:

Description: Counts lines, words, and characters in the


file.

20. uname -a:

Description: Displays system information like kernel


name, version, and architecture.
II. QUESTIONS GIVEN:
1Q: Display the current working directory on the console
using a command.

2Q: Navigate the linux files and directories.

3Q:List the contents of a directory.


4Q: List the contents of a file on the standard output.

5Q: Copy the files from current directory to a different


directory.

6Q: Move files from the current directory to a different


directory.

7Q: What command is used to make a new directory?

‘mkdir’ command is used to create a new directory.


8Q: How to delete an empty directory?

9Q: How to delete directories and the contents in it?

10Q: Which command allows us to create a blank new file


through the Linux command line?

11Q: How to check the connectivity status of a server?

Using the command ‘ping server_address’


12Q: How to display a list of running processes and how
much CPU each process uses?

13Q: How to review/display the commands you’ve entered


before in a session?
14Q: What command is used to learn details about a
particular command in Linux?

15Q: What command is used to move some data into a file?


16Q: Print the history of the commands worked so far

17Q: Create a file name called “Week01_history.txt”. Copy


all your history that you have worked for the today’s lab.

You might also like