An open API service indexing awesome lists of open source software.

https://github.com/blesson-tomy/s4_operating_systems_lab

This repository contains the programs for the Operating Systems Lab that we had in S4.
https://github.com/blesson-tomy/s4_operating_systems_lab

c lab operating-system

Last synced: about 1 year ago
JSON representation

This repository contains the programs for the Operating Systems Lab that we had in S4.

Awesome Lists containing this project

README

          

# S4_Operating_Systems_Lab

## BASIC LINUX COMMANDS

## Aim: To implement basic linux commands

## Commands:

### Command 1: pwd

Display the working directory

Syntax: pwd

### Command 2: ls

To get the list of all the files or folders

Syntax: ls

### Command 3: cd

Used to change the directory.

Syntax: cd

### Command 4: echo

This command helps us move some data, usually text into a file.

Syntax: echo

### Command 5: mkdir

This command is used to create a new directory.

Syntax: mkdir

### Command 6: date

The date command is used to display date, time, time zone, and more.

Syntax: date

### Command 7: touch

The touch command is used to create empty files. We can create multiple empty files by executing it once.

Syntax:
touch
touch ....

### Command 8: history

The history command is used to display the history of commands used in the terminal.

Syntax: history

### Command 9: nano

Used to open or create a new file in the terminal for editing.

Syntax: nano

### Command 10: clear

Linux clear command is used to clear the terminal screen.

Syntax: clear

### Command 11: sudo

The command in Linux is generally used as a prefix for some commands that only superusers are allowed to run. If you prefix any command with “sudo”, it will run that command with elevated privileges or in other words allow a user with proper permissions to execute a command as another user, such as the superuser.

Syntax: sudo

### Command 12: cat

The cat command is a multi-purpose utility in the Linux system. It can be used to create a file, display content of the file, copy the content of one file to another file, and more.

Syntax: cat [OPTION]... [FILE]..

### Command 13: man

An interface to the system reference manuals.

Syntax: man

### Command 14: uname

Offers information about a Linux machine's operating system and hardware platform

Syntax: uname

### Command 15: whoami

Prints effective userid.

Syntax: whoami

### Command 16: rm

It stands for 'remove' and, as the name suggests, it's used to delete files and directories.

Syntax: rm

### Command 17: rmdir

The rmdir command removes the directory, specified by the Directory parameter, from the system. The directory must be empty before you can remove it, and you must have write permission in its parent directory.

Syntax: rmdir

### Command 18: cp
Copy from one file to another.
Syntax: cp