0% found this document useful (0 votes)
4 views3 pages

Basic Linux Commands

This document provides a list of basic Linux commands along with their functions. Key commands include 'ls' for listing files, 'mkdir' for creating directories, 'cd' for navigating directories, and 'rm' for deleting files. Additional commands such as 'cp', 'mv', 'touch', and 'cat' are also explained for file management and viewing contents.

Uploaded by

ommmdharmi
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)
4 views3 pages

Basic Linux Commands

This document provides a list of basic Linux commands along with their functions. Key commands include 'ls' for listing files, 'mkdir' for creating directories, 'cd' for navigating directories, and 'rm' for deleting files. Additional commands such as 'cp', 'mv', 'touch', and 'cat' are also explained for file management and viewing contents.

Uploaded by

ommmdharmi
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

Basic linux commands

sudo apt update

sudo apt upgrade

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

mkdir :- This mkdir command allows you to create fresh directories in the terminal
itself. The default syntax is mkdir <directory name> and the new directory will be
created.

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

cd :- The cd command is used to navigate between directories. It requires either


the full path or the directory name, depending on your current working directory. If
you run this command without any options, it will take you to your home folder.
cd .. :- Goes back one directory

rm -rf :- The rmdir command is used to delete permanently an empty directory.

cp - it works like copy and paste for windows.

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

rm :- rm command in Linux is generally used to delete the files created in the


directory.

touch :- The touch command creates an empty file when put in the terminal in
this format as touch <file name>

cat :- The cat command is the simplest command to use when you want to see
the contents of a particular file. The only issue is that it simply unloads the entire
file to your terminal. If you want to navigate around a huge file, you should use
less commands alternatively.

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

You might also like