PC World - It's a testament to how far Linux has come that users today don't typically have to use the command line if they don't want to. Such is the quality of the graphical user interfaces in many modern Linux distributions that there's simply no need, in general.
Yet the command line can be a highly efficient way of getting things done in the Linux world--it's often a much simpler, easier and more direct method than clicking through all the menu choices, in fact.
I believe fear of the command line is one of the top mistakes newcomers to Linux sometimes make. For that reason, let's look at some of the main commands any Linux user should know.
I begin with the "man" command because in many ways it's the most fundamental. This command is what you should use when you want to learn more about another command.
Essentially, "man" displays online manual pages to provide a basic introduction to the various other commands that are available. Using it can help you understand the functions of those commands as well as how to use them. You can even type "man man" to get the man page for "man" itself.
If you're ever unsure of a command you're about to use, try typing "man" along with the command to learn more about exactly what it does.
Another fundamental command is "ls," which displays the contents of your current directory. For example, "ls ~" will show you the files in your home directory.
To find out which directory you're working in, type "pwd," which is short for "print working directory." Typed in the desktop directory, for example, this command will return "~/desktop."
To change the directory you're in, use this command. To switch to the desktop directory, for instance, you'd type "cd desktop."
To create a new directory, this is the command you'd use. For example, "mkdir pictures" will create a directory called "pictures."
6. find and locate
To search for a file, you can use either "find" or "locate," both of which are very similar.
This is the command to use when you want to create a copy of a file with a new name. Type "cp cats dogs," for instance, and you'll get an exact copy of "cats" named "dogs"; the file "cats" will still be there too.
With "mv," you can change the name of a file or move it to another directory--or both. Typing "mv cats dogs" will rename the file "cats" to "dogs," for example, while typing "mv cats ~/desktop" will move the file "cats" to the desktop directory without renaming it.
- 15 Non-Certified IT Skills Growing in Demand
- How 19 Tech Titans Target Healthcare
- Twitter Suffering From Growing Pains (and Facebook Comparisons)
- Agile Comes to Data Integration
- Slideshow: 7 security mistakes people make with their mobile device
- iOS vs. Android: Which is more secure?
- 11 sure signs you've been hacked
- The Benefits of IBM: The Savings of Open Source Download Now
- Is Your Big Data Solution Production-Ready? Read "Is Your Big Data Solution Production-Ready?" now, and discover best practices and actionable steps to implementing a production-ready big data solution.
- Pay-as-you-Grow Data Protection: IBM Tivoli's Full-featured Data Protection Suite for Small to Medium Businesses IBM Tivoli Storage Manager Suite for Unified Recovery gives small and medium businesses the opportunity to start out with only the individual solutions...
- Streamline Data Protection with IBM Tivoli Storage Manager Operations Center IBM Tivoli Storage Manager (TSM) has been an industry-standard data protection solution for two decades. But, where most competitors focus exclusively on Backup...
- Webinar: Building a Big Data solution that's production-ready Big data solutions are no longer just a nice-to-have.
- Meg Whitman presents Unlocking IT with Big Data During this Web Event you will hear Meg Whitman, President and CEO, HP discuss HAVEn - the #1 Big Data platform, as well... All Open Source White Papers | Webcasts