Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
GET STARTED
scalability, and delivery expertise.
HIDE AD • AD VIA BUYSELLADS
Custom Search
COURSES Login
HIRE WITH US
Basic Shell Commands in Linux
A shell is a special user program which provides an interface to the user to use operating system services. Shell accept
human readable commands from the user and convert them into something which kernel can understand. It is a
command language interpreter that execute commands read from input devices such as keyboards or from files. The
shell gets started when the user logs in or start the terminal.
cat : It is generally used to concatenate the files. It gives the output on the standard output.
more : It is a filter for paging through text one screenful at a time.
less : It is used to viewing the files instead of opening the file.Similar to more command but it allows backward as
well as forward movement.
▲
Partner with the email service trusted by developers and marketers for time-savings,
GET STARTED
scalability, and delivery expertise.
HIDE AD • AD VIA BUYSELLADS
head : Used to print the first N lines of a file. It accepts N as input and the default value of N is 10.
tail : Used to print the last N-1 lines of a file. It accepts N as input and the default value of N is 10.
mkdir : Used to create a directory if not already exist. It accepts directory name as input parameter.
▲
cp : This command will copy the files and directories from source path to destination path. It can copy a
Partner with the email service trusted by developers and marketers for time-savings,
file/directory with new name to the destination path. It accepts source file/directory and destination file/directory.
GET STARTED
scalability, and delivery expertise.
HIDE AD • AD VIA BUYSELLADS
mv : Used to move the files or directories. This command’s working is almost similar to cp command but it
deletes copy of file or directory from source path.
grep : This command is used to search for the specified text in a file.
grep with Regular Expressions : Used to search for text using specific regular expressions in file.
▲
Partner with the email service trusted by developers and marketers for time-savings,
GET STARTED
scalability, and delivery expertise.
HIDE AD • AD VIA BUYSELLADS
5). File Permissions Commands: The chmod and chown commands are used to control access to files in UNIX and
Linux systems.
New
Recommended Posts:
Basic Linux Commands for day to day life
Introduction to Linux Shell and Shell Scripting
Basic Operators in Shell Scripting
Making your own Linux Shell in C
Fun Commands in Linux
Linux Commands
A Shell program To Find The GCD | Linux
Developing a Linux based shell
Essential Linux/Unix Commands
Custom commands for linux terminal
Daily life Linux Commands
Internal and External Commands in Linux
How to find time taken by a command/program on Linux Shell?
halt, poweroff and reboot Commands in Linux
Useful and time saving bash commands in Linux
shitalpatil94612
Check out this Author's contributed articles.
If you like GeeksforGeeks and would like to contribute, you can also write an article using
contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the
GeeksforGeeks main page and help other Geeks.
▲
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
New
Partner with the email service trusted by developers and marketers for time-savings,
GET STARTED
scalability, and delivery expertise.
HIDE AD • AD VIA BUYSELLADS
price drop
2
To-do Done 2
Based on 1 vote(s)
Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.
Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.
Load Comments
COMPANY LEARN
About Us Algorithms
Careers Data Structures
Privacy Policy Languages
Contact Us CS Subjects
Video Tutorials
PRACTICE CONTRIBUTE
Courses Write an Article
Company-wise Write Interview Experience
Topic-wise Internships
How to begin? Videos