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

  • Steps to Create a Servlet
    Steps to Create a Servlet Servlet
  • Statements in C Language | Types of statements in C Language
    Statements in C Language | Types of statements in C Language C Language
  • International Labour's Day in Hindi | अंतर्राष्ट्रीय मजदूर दिवस 1 मई
    International Labour’s Day in Hindi | अंतर्राष्ट्रीय मजदूर दिवस 1 मई General Knowledge
  • Java Learning Tutorial
    Java Tutorial for Advanced Learning, Buzzwords, Parts of Java Java
  • Fundamental Duties of Indian Citizens
    Fundamental Duties of Indian Citizens General Knowledge
  • World Environment Day in Hindi : Objective, Importance, Theme
    World Environment Day in Hindi : Objective, Importance, Theme General Knowledge
  • Bubble Sort Algorithm in Data Structure | Bubble Sort Example
    Bubble Sort Algorithm in Data Structure | Bubble Sort Example Data Structure
  • Importance of Thread Synchronization in Java
    Importance of Thread Synchronization in Java Java

Linux Commands With Example | Linux commands cheat sheet

Posted on March 19, 2022March 19, 2022 By admin 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

What is International Monetary Fund (I.M.F.) What is International Monetary Fund (I.M.F.)? Important
Indian Constitution भारतीय संविधान | भारत का संविधान Indian Constitution भारतीय संविधान | भारत का संविधान Important
What is Agriculture Agriculture (कृषि) से जुड़े महत्वपूर्ण प्रश्न और उत्तर Important
Immutable class in Java Immutable class in Java | How to create Immutable class in Java Important
Operational Qualification Operational Qualification (OQ) Important
Maven Tutorial Maven Tutorial Important

Related Posts

  • What is International Monetary Fund (I.M.F.)
    What is International Monetary Fund (I.M.F.)? Important
  • Indian Constitution भारतीय संविधान | भारत का संविधान
    Indian Constitution भारतीय संविधान | भारत का संविधान Important
  • What is Agriculture
    Agriculture (कृषि) से जुड़े महत्वपूर्ण प्रश्न और उत्तर Important
  • Immutable class in Java
    Immutable class in Java | How to create Immutable class in Java Important
  • Operational Qualification
    Operational Qualification (OQ) Important
  • Maven Tutorial
    Maven Tutorial Important

Leave a Reply Cancel reply

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

Recent Posts

  • Structured Vs Unstructured Data in Hindi | Key Difference
  • Jhansi Ki Rani Lakshmi Bai History, Story, Information in Hindi
  • Elon musk Hindi : एलन मस्क हिंदी में, Autobiography,  Net Worth
  • World Environment Day in Hindi : Objective, Importance, Theme
  • Thomas Edison Biography in Hindi – थॉमस एडिसन जीवनी
  • International Nurses Day in Hindi | नर्स दिवस क्यों मनाते हैं?
  • Fork/Join Framework in Java | RecursiveTask, RecursiveAction
  • DBMS in Hindi | DBMS क्या है? | DBMS की विशेषताएं और प्रकार
  • Steps to Create a Servlet
    Steps to Create a Servlet Servlet
  • Statements in C Language | Types of statements in C Language
    Statements in C Language | Types of statements in C Language C Language
  • International Labour's Day in Hindi | अंतर्राष्ट्रीय मजदूर दिवस 1 मई
    International Labour’s Day in Hindi | अंतर्राष्ट्रीय मजदूर दिवस 1 मई General Knowledge
  • Java Learning Tutorial
    Java Tutorial for Advanced Learning, Buzzwords, Parts of Java Java
  • Fundamental Duties of Indian Citizens
    Fundamental Duties of Indian Citizens General Knowledge
  • World Environment Day in Hindi : Objective, Importance, Theme
    World Environment Day in Hindi : Objective, Importance, Theme General Knowledge
  • Bubble Sort Algorithm in Data Structure | Bubble Sort Example
    Bubble Sort Algorithm in Data Structure | Bubble Sort Example Data Structure
  • Importance of Thread Synchronization in Java
    Importance of Thread Synchronization in Java Java
  • 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