Skip to content

TechRepublic

  • Top Products Lists
  • Developer
  • 5G
  • Security
  • Cloud
  • Artificial Intelligence
  • Tech & Work
  • Mobility
  • Big Data
  • Innovation
  • Cheat Sheets
  • TechRepublic Academy
  • CES
  • TechRepublic Premium
  • Top Products Lists
  • Developer
  • 5G
  • Security
  • Cloud
  • Artificial Intelligence
  • Tech & Work
  • Mobility
  • Big Data
  • Innovation
  • Cheat Sheets
  • TechRepublic Academy
  • CES
  • See All Topics
  • Sponsored
  • Newsletters
  • Forums
  • Resource Library
TechRepublic Premium
Join / Sign In
Open source

Screenshots: Five command-line apps every Linux newbie needs to know

By Jack Wallen April 27, 2016, 11:07 AM PDT

Image
1
of 6

Intro
Intro
Screenshots: Five command-line apps every Linux newbie needs to know

Introduction

Image: iStockphoto.com/Tinatin1

Introduction

Linux has taken over the enterprise. It runs the backbonernfor many of the largest companies. It’s one of the biggest players in big data.rnIf you’re serious about moving up the IT ladder, at some point, you’re going tornhave to know Linux.

And although the Linux GUI tools are now as good as thosernavailable for any other platform, some tasks will require a bit of command-linernknowledge. But where do you begin? You start off where every Linux newbie should…rnwith what I believe are five of the most important commands for new Linux adminsrnto learn.

Note: This gallery is also available as an article.

Image: iStockphoto.com/Tinatin1
man
man
Screenshots: Five command-line apps every Linux newbie needs to know

man

man

Nearly every command on your system should have a man page,rnall of which are set up to follow a specific standard. You’ll get the commandrnstructure, information about all the flags, switches, and options, commandrnsyntax, a history of the command, and related commands. If you’ve ever hearrnsomeone say RTFM…consider that u201cmu201d to be u201cman page.u201d

ls
ls
Screenshots: Five command-line apps every Linux newbie needs to know

ls

ls

If you want to do a recursive listing (so you can also seernwhat’s tucked away within those folders), issue the command ls -R.rnIf you want to find out more about what ls can do for you, guessrnwhat…RTFM!

mv
mv
Screenshots: Five command-line apps every Linux newbie needs to know

mv

mv

Use this tool with caution. For instance, suppose you haverntwo files: test and test1. You want to rename testrnand you accidentally issue the command mv test test1. This command willrnoverwrite your existing test1 file with the contents of test.rnTo avoid that you can use the -nrnoption, which will prevent mv from overwriting an existingrnfile. So mv -n test test1 will not overwrite test1 with test.rnThis is a precaution everyone should take.

rm
rm
Screenshots: Five command-line apps every Linux newbie needs to know

rm

rm

If you need to delete a folder, you have to include the R switchrn(for recursive). To delete the folder TEST, you would issue the command rmrn-iR TEST. If you have an old Linux system about to recommissioned (andrnyou have all the data from the drive), you can have a little fun by issuing therncommand rm -rf / as the root user (or using sudo) and watch the entirerncontents of the machine vanish before your eyes. Don’t do this. Really… don’t.

grep
grep
Screenshots: Five command-line apps every Linux newbie needs to know

grep

grep

Suppose that config file is named app.conf. To check thernfile for the string, you could issue the command grep LOCAL_LINUX_LOCALE app.conf.rnThe results would list the string, highlighted for easy spotting. And what if yournneeded to know the exact line number that contains the string? Just add the -nrnswitch, and it will print out the line number:

grep -n LOCAL_LINUX_LOCALE app.conf

  • Open source
  • Software
  • Account Information

    Share with Your Friends

    Screenshots: Five command-line apps every Linux newbie needs to know

    Your email has been sent

Share: Screenshots: Five command-line apps every Linux newbie needs to know
Image of Jack Wallen
By Jack Wallen
Jack Wallen is an award-winning writer for TechRepublic, The New Stack, and Linux New Media. He's covered a variety of topics for over twenty years and is an avid promoter of open source. For more news about Jack Wallen, visit his website jackwallen.
  • Account Information

    Contact Jack Wallen

    Your message has been sent

  • |
  • See all of Jack's content

TechRepublic Premium

  • TechRepublic Premium

    Hiring kit: Back-end developer

    PURPOSE Finding a back-end developer with programming and technical expertise as well as superior collaboration and communication skills will require a comprehensive recruitment strategy. This Hiring Kit from TechRepublic Premium provides an adjustable framework your business can use to find, recruit and ultimately hire the right person for the job. From the hiring kit: TYPICAL ...

    Published:  March 21, 2023, 12:00 PM EDT Modified:  March 22, 2023, 3:00 PM EDT Read More See more TechRepublic Premium
  • TechRepublic Premium

    Hiring kit: Application engineer

    PURPOSE Application engineers need to have technical expertise in programming, design, business and the software and hardware required to run the application. This Hiring Kit from TechRepublic Premium provides an adjustable framework your business can use to find, recruit and ultimately hire the right person for the job. From the hiring kit: DETERMINING FACTORS, DESIRABLE ...

    Published:  March 21, 2023, 12:00 PM EDT Modified:  March 22, 2023, 3:00 PM EDT Read More See more TechRepublic Premium
  • TechRepublic Premium

    Employee performance review policy

    PURPOSE The purpose of this policy from TechRepublic Premium is to provide guidelines for employee performance reviews, which will clearly document accomplishments and areas of opportunity via an encouraging and thought-provoking analysis. This will assist in determining the next steps for employees as well as their future at the organization. This policy can be customized ...

    Published:  March 20, 2023, 12:00 PM EDT Modified:  March 21, 2023, 4:00 PM EDT Read More See more TechRepublic Premium
  • TechRepublic Premium

    Employee time off policy

    PURPOSE The purpose of this policy from TechRepublic Premium is to provide guidelines for requesting, filing and permitting paid/unpaid time off as well as to ensure coverage during holidays, vacation(s) and other absences where staffing levels must be consistent to meet the needs of the business. From the policy: TIME OFF GUIDELINES All time off ...

    Published:  March 20, 2023, 12:00 PM EDT Modified:  March 21, 2023, 4:00 PM EDT Read More See more TechRepublic Premium

Services

  • About Us
  • Newsletters
  • RSS Feeds
  • Site Map
  • Site Help & Feedback
  • FAQ
  • Advertise
  • Do Not Sell My Information

Explore

  • Downloads
  • TechRepublic Forums
  • Meet the Team
  • TechRepublic Academy
  • TechRepublic Premium
  • Resource Library
  • Photos
  • Videos
  • TechRepublic
  • TechRepublic on Twitter
  • TechRepublic on Facebook
  • TechRepublic on LinkedIn
  • TechRepublic on Flipboard
© 2023 TechnologyAdvice. All rights reserved.
  • Privacy Policy
  • Terms of Use
  • Property of TechnologyAdvice