0% found this document useful (0 votes)
5 views

linuxcommands

The document provides an overview of the Linux Operating System, emphasizing the role of the Linux Kernel in managing hardware interactions. It lists and explains basic Linux commands such as ls, pwd, mkdir, cd, and others, detailing their functions for file and directory management. The document serves as a practical guide for beginners to familiarize themselves with essential Linux commands.
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

linuxcommands

The document provides an overview of the Linux Operating System, emphasizing the role of the Linux Kernel in managing hardware interactions. It lists and explains basic Linux commands such as ls, pwd, mkdir, cd, and others, detailing their functions for file and directory management. The document serves as a practical guide for beginners to familiarize themselves with essential Linux commands.
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 6

Practical 1

Aim - Basic Linux Commands

What is Linux Operating System

The Linux Operating System is a type of operating system that is similar to Unix, and it is built
upon the Linux Kernel. The Linux Kernel is like the brain of the operating system because it
manages how the computer interacts with its hardware and resources. It makes sure everything
works smoothly and efficiently. But the Linux Kernel alone is not enough to make a complete
operating system.

1. Is

The ls command is commonly used to identify the files and directories in the working directory.
2. pwd

The pwd command is mostly used to print the current working directory on your terminal.

3. mkdir
This mkdir command allows you to create fresh directories in the terminal itself.

4. cd command in Linux

The cd command is used to navigate between directories or change directories.

5. rmdir command in Linux

The rmdir command is used to delete permanently an empty directory.

The rmdir command is used to delete permanently an empty directory.

6. cp command in Linux

The cp command of Linux is equivalent to copy-paste and cut-paste in Windows.


7. mv command in Linux

The mv command is generally used for renaming the files in Linux.

8. rm command in Linux

rm command in Linux is generally used to delete the files created in the directory.

11. touch command in Linux

The touch command creates an empty file.

12. pwd — Print Working Directory

Use: Displays the current directory you are in.

13. cat — Concatenate and Display File Contents


Use: Displays the contents of a file.

14. whoami

The command whoami is used to display the username of the currently logged-in user.

15. 14. clear command in Linux

The clear command is a standard command to clear the terminal screen.

16. date — Display or Set Date and Time

Use: Displays the current date and time or allows you to set a new system date and time.

17. uptime — Show System Uptime

Use: Displays the system's uptime (how long the system has been running since the last reboot), along
with the current time, load averages, and number of users.

18. echo command in Linux

echo command in Linux is specially used to print something in the terminal

19.grep – Search for Patterns in Files

Searches for specific patterns (strings or regular expressions) in files.

20. uname command in Linux

The uname command is used to check the complete OS information of the system.

You might also like