Skip to content
  • Facebook
GeekCer Logo

GeekCer

The geek's Coding education and Review centre

  • Home
  • Tutorials
    • Java
    • Servlet
    • JSP
    • Python
    • C Tutorial
    • Spring
    • Spring Boot
    • MongoDB
    • Hibernate
    • Data Structure
  • General Knowledge
  • Biography
  • Grammar
  • Festival (त्योहार)
  • Interview
  • Differences
  • Important
  • Toggle search form

Home » Important » Linux Commands With Example | Linux commands cheat sheet

  • World Earth Day in Hindi | पृथ्वी दिवस कब और क्यों मनाया जाता है?
    Earth Day in Hindi, Theme | पृथ्वी दिवस कब और क्यों मनाया जाता है? General Knowledge
  • Unicef day
    Unicef day is celebrated on December 11 | Speech on unicef day General Knowledge
  • Maharishi Valmiki in Hindi, Biography, Dacoit Ratnakar, Jayanti
    Maharishi Valmiki in Hindi, Biography, Dacoit Ratnakar, Jayanti Spiritual
  • Apj Abdul Kalam biography in Hindi, Life, Missile Man of India
    Apj Abdul Kalam biography in Hindi, Life, Missile Man of India Biography
  • List Of National Animals Of Countries
    List Of National Animals Of Countries General Knowledge
  • Fundamental Duties of Indian Citizens
    Fundamental Duties of Indian Citizens | 11 मौलिक कर्तव्य हिंदी में General Knowledge
  • Lanka Kand Summary in Hindi | Ram Vs Ravana | लंका काण्ड
    Lanka Kand Summary in Hindi | Ram Vs Ravana | लंका काण्ड Spiritual
  • Diwali The Festival of Lights
    Diwali 2022, Indian Festival of Lights essay (दिवाली त्योहार पर निबंध, कहानी) Festival

Linux Commands With Example | Linux commands cheat sheet

Posted on March 19, 2022March 19, 2022 By GeekCer Education No Comments on Linux Commands With Example | Linux commands cheat sheet
Linux Commands With Example | Linux commands cheat sheet

The Linux Commands With Example is meant to help you learn commands quickly and receive all of the most often used commands today. Linux commands are now used in almost all IT businesses.

Learning these commands will undoubtedly give you the confidence to operate on the Linux operating system.

Table of Contents

  • List of most widely used Linux Commands
  • Linux Commands examples
  • ls command in linux
  • cd command in linux
  • cp command in linux
  • rm command in linux
  • grep command in linux
  • find command in linux
  • cat command in linux
  • mkdir command in linux

List of most widely used Linux Commands

  • cat command in linux
  • cd command in linux
  • cp command in linux
  • echo command in linux
  • grep command in linux
  • head command in linux
  • history command in linux
  • ls command in linux
  • man command in linux
  • mkdir command in linux
  • mv command in linux
  • pwd command in linux
  • rm command in linux
  • rmdir command in linux
  • tail command in linux
  • touch command in linux
  • tree command in linux
  • vi command in linux
  • wc command in linux
  • wget command in linux

Click here to learn the git commands

Linux Commands examples

The following is a definition of linux basic commands, along with its syntax and examples.

ls command in linux

The ls command is used to display the contents of a directory. The ls command displays a list of files and directories.

ls

cd command in linux

In Linux, the cd command is used to navigate between files and directories. You have the option of either the whole path or the directory name.

These are commands that can assist you in fast navigating.

cd ..(With two dots) To go one directory higher
cd  To get directly to the home folder
cd- (with the hyphen) To return to your previous directory

cp command in linux

You can use the cp command to copy files from your current directory to another directory. The cp command will make a copy of file.txt in the documents directory in this example.

cp file.txt /home/geekcer/documents

rm command in linux

When you wish to delete a file in Linux, you use the rm command.

rm <name of file>
rm file1.txt

grep command in linux

On a Linux system, Grep is the most powerful and widely used filter. “Global regular expression print” is abbreviated as grep. When looking for information within a file, this comes in helpful.

<command> | grep <wordToSearch>  
cat file.txt | grep 2

The grep is commonly associated with pipes.

find command in linux

The find command in Linux is used to identify files based on user-defined parameters.

find . -name "*.jpg"  

You can use (.) to refer to the current directory and (/) to refer to the root directory.

cat command in linux

To multitask on Linux, we use the cat command. The cat command can be used to create a file, display its contents, and copy its contents from one file to another.

Aside from that, the cat command may be used to do a wide range of operations.

Create file 
cat > <name of file>  


Display file
cat <name of file>

mkdir command in linux

To create a new empty file in Linux, we use the touch command. There will be no information in this file. This command may be used from the terminal to quickly create a file in your current working directory.

touch data.txt

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • More
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Also Read

Important Tags:Linux basic commands, Linux commands list with examples, Most used linux commands you should know, Ubuntu linux commands, What are the top commands in Linux?

Post navigation

Previous Post: Git commands with example and git log, git bash, create repo
Next Post: HTTP status codes List | Response Status Code Glossary

More Related Articles

Jenkins java | Installing Jenkins on Windows Jenkins java | Installing Jenkins on Windows Important
Difference between Runnable and Callable in Java Difference between Runnable and Callable in Java Differences
Waterfall Model in Hindi (Waterfall Model क्या है?) Waterfall Model in Hindi (Waterfall Model क्या है?) Important
PHP Tutorial for Beginners in One Page PHP Tutorial for Beginners in One Page Important
What is Mutual Fund? Mutual Fund and its types, Advantages and Disadvantages of Mutual Funds Important
Difference between Bugs, Errors and Issues in Software Testing Difference between Bugs, Errors and Issues in Software Testing Important

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • National Farmers Day in Hindi | राष्ट्रीय किसान दिवस पर निबंध | चौधरी चरण सिंह जयंती
  • Human rights day in Hindi: 10 दिसंबर ह्यूमन राइट्स डे
  • Unicef day is celebrated on December 11 | Speech on unicef day
  • Indian Navy Day: जल सेना दिवस कब और क्यों मनाया जाता है?
  • P V Sindhu Biography in Hindi, Badminton, State, Caste पी. वी. सिंधु जीवन परिचय, कहानी, राज्य, जाति
  • Draupadi Murmu Biography In Hindi | द्रौपदी मुर्मू की जीवनी
  • Network kya hai (नेटवर्क क्या है)
    Network kya hai (नेटवर्क क्या है) Networking
  • Difference between Internet and Intranet
    Difference between Internet and Intranet Differences
  • OSI Model | 7 Layers of OSI Model in Computer network
    OSI Model | 7 Layers of OSI Model in Computer network, Functions Networking
  • Similarities and difference between OSI and TCP/IP model
    OSI vs TCP/IP Model, Similarities and difference between OSI and TCP/IP model Networking
  • Difference between TCP and UDP
    Difference between TCP and UDP | TCP vs UDP examples Differences
  • TCP/IP Model, Full Form, Layers and their Functions
    TCP/IP Model, Full Form, Layers and their Functions Networking
  • IPv4 Vs IPv6 | Difference between IPv4 and IPv6
    IPv4 Vs IPv6 | Difference between IPv4 and IPv6 Differences
  • Java Tutorial
  • Servlet Tutorial
  • JSP Tutorial
  • Maven Tutorial
  • HTML Tutorial
  • Programs
  • Hindi/English Grammar
  • Difference Between ... and ...
  • HR Interview
  • Important Articles

Write to Us:
geekcer.code@gmail.com

  • About Us
  • Privacy and Policy
  • Disclaimer
  • Contact Us
  • Sitemap

Copyright © GeekCer 2022 All Rights reserved