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

  • What is Tense in Hindi (काल क्या है)?
    What is Tense in Hindi (काल क्या है)? Grammar
  • Real life Inspirational Stories in Hindi | Success story in Hindi
    Real life Inspirational Stories in Hindi | Success story in Hindi Biography
  • Why is Makar Sankranti celebrated
    Why is Makar Sankranti celebrated? Festival
  • Mahatma Gandhi Essay in Hindi | Gandhiji Biography
    Mahatma Gandhi Essay in Hindi | Gandhiji Biography Biography
  • States of Matter : Physical Properties of Matter (Solid, Liquid, Gas)
    States of Matter | Physical Properties of Matter (Solid, Liquid, Gas) Science
  • P V Sindhu Biography in Hindi
    P V Sindhu Biography in Hindi, Badminton, State, Caste पी. वी. सिंधु जीवन परिचय, कहानी, राज्य, जाति Biography
  • Vedaant Madhavan Biography in Hindi, Family, School, Age
    Vedaant Madhavan Biography in Hindi, Family, School, Age Biography
  • State the Universal law of gravitation | Law of Gravity, Formula
    State the Universal law of gravitation | Law of Gravity, Formula Science

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

Immutable class in Java Immutable class in Java | How to create Immutable class in Java Important
Join Queries in Oracle, Sql Joins, Self, Inner, Outer, Equi Join Queries in Oracle, Learning Advance Sql Joins, Example Important
PHP Tutorial for Beginners in One Page PHP Tutorial for Beginners in One Page Important
Git commands with example and git log, git bash, create repo Git commands with example and git log, git bash, create repo Important
Java 11 new Features (With example Programs) Java 11 new Features (With example Programs) Important
Symptoms and Prevention of Coronavirus Disease (Covid-19) Symptoms and Prevention of Coronavirus Disease (Covid-19) 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 | द्रौपदी मुर्मू की जीवनी
  • OSI Model | 7 Layers of OSI Model in Computer network
    OSI Model | 7 Layers of OSI Model in Computer network, Functions Networking
  • Difference between Internet and Intranet
    Difference between Internet and Intranet 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
  • Difference between TCP and UDP
    Difference between TCP and UDP | TCP vs UDP examples Differences
  • Network kya hai (नेटवर्क क्या है)
    Network kya hai (नेटवर्क क्या है) 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
  • 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