Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

  • Home
  • Tutorials
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 1342
Next
In Process
sita
sita

sita

  • India
  • 105 Questions
  • 59 Answers
  • 1 Best Answer
  • 74 Points
View Profile
  • 2
sita
Asked: February 5, 20212021-02-05T13:12:01+05:30 2021-02-05T13:12:01+05:30In: Networking

25 linux commands with examples and syntax

  • 2

Im new to linux and learing linux commands and syntax. can anyone drop 25 most used linux commands with examples and syntax? if you share linux commands with examples and syntax, that will be really helpful. Image help will be really useful.

interview linux commands with examples and syntaxlinuxlinux commandslinux commands with examples and syntaxlinux commands with examples and syntax 2021linux commands with examples and syntax easylinux commands with examples and syntax for interviewlinux commands with examples and syntax most usedmost common linux commands with examples and syntax
  • 1
  • 1,298
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • Uninstall kali Grub from Computer
    • How to fix linux error 13 permission denied 13: Permission denied Kali Linux
    • You are the system administrator your Linux server is not functioning properly
    • how to set environment variable in linux
    • Which Operating System is better among Windows, Linux and Mac

    1 Answer

    1. kushwanth

      kushwanth

      • India
      • 9 Questions
      • 13 Answers
      • 2 Best Answers
      • 76 Points
      View Profile
      kushwanth
      2021-04-26T19:34:31+05:30Added an answer on April 26, 2021 at 7:34 pm

      Here is a list of basic Linux commands:
      1.pwd command: it is used to find out the path of the current working directory-Example of an absolute path is /home/username.
      2.cd command:syntax cd filename-Example,you’re in /home/username/Documents and you want to go to Photos,cd photos
      3.ls command: ls command is used to view the contents of a directory-Example, enter ls /home/username/Documents to view the content of Documents.
      4.cat command: It is used to list the contents of a file on the standard output (sdout)-for example, cat file.txt
      5.cp command:it is used to copy files from the current directory to a different directory-For example, the command cp scenery.jpg /home/username/Pictures would create a copy of scenery.jpg (from your current directory) into the Pictures directory.
      6.mv command: it is used to move files, although it can also be used to rename files-For example: mv file.txt /home/username/Documents.
      7.mkdir command:it is used to make a new directory-for example,mkdir Music will create a directory called Music.
      8.rmdir command: it is used to delete a directory-for example rmdir filename
      9.rm command: it is used to delete directories and the contents within them-for example,If you only want to delete the directory — as an alternative to rmdir — use rm -r.
      10.touch command: it allows you to create a blank new file through the Linux command line-Example, enter touch /home/username/Documents/Web.html to create an HTML file entitled Web under the Documents directory.
      11.locate command:it is used to locate a file-for example locate -i school*note command will search for any file that contains the word “school” and “note”, whether it is uppercase or lowercase.
      12.find command-using find also searches for files and directories-Example, find /home/ -name notes.txt command will search for a file called notes.txt within the home directory and its subdirectories.
      13.grep command: It lets you search through all the text in a given file-for Example, grep blue notepad.txt will search for the word blue in the notepad file.
      14.sudo command: this command enables you to perform tasks that require administrative or root permissions
      15.df command: command to get a report on the system’s disk space usage-example df -m.
      16.du command: If you want to check how much space a file or a directory takes-example, type du
      17.head command:it used to view the first lines of any text file-Example,type head -n 5 filename.ext.
      18.tail command: it will display the last ten lines of a text file-For example, tail -n filename.ext.
      19.diff command:it compares the contents of two files line by line-for example,diff file1.ext file2.ext
      20.chown command: it enables you to change or transfer the ownership of a file to the specified username-for example,chown linuxuser2 file.ext will make linuxuser2 as the owner of the file.ext.
      21.ping command: it is used to check your connectivity status to a server-For example, by simply entering ping google.com
      22.wget command: you can even download files from the internet with the help of the wget command-Example, wget followed by the download link.
      23.man command: easily learn how to use them right from Linux’s shell by using the man command-Example,entering man tail will show the manual instruction of the tail command.
      24.echo command:This command is used to move some data into a file-For example, if you want to add the text, “Hello, my name is John” into a file called name.txt, you would type echo Hello, my name is John >> name.txt
      25.zip, unzip command:Use the zip command to compress your files into a zip archive, and use the unzip command to extract the zipped files from a zip archive.

       

      • 1
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • muller

      How to ensure privacy regulations, GDPR or CCPA

    • muller

      404 error

    • arunraj503

      failed to propagate agent release message: no buffer space available

    • Aniya

      i/o error on routing socket no buffer space available -

    • Raja441

      how to connect wireless mouse to laptop

    • Sharmila

      Is possible to connect without user click on Accept in

    • Raja441

      What is The most common difference between DHCP and Static

    • Raja441

      how to convert to word to pdf

    Stats

    • Questions 1,992
    • Answers 2,102
    • Posts 12
    • Best Answers 73

    Related Questions

    • Venkata Sai G M

      Uninstall kali Grub from Computer

    • nora khan

      How to fix linux error 13 permission denied 13: Permission denied Kali

    • dynamicapps5

      You are the system administrator your Linux server is not functioning properly

    • samipixo

      how to set environment variable in linux

    • Pooja Jakhar

      Which Operating System is better among Windows, Linux and Mac

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • AaronBlackburn on why can’t i find my message requests on instagram
    • shree on How to use philips citrus press juicer 25 watts Demo
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.