Using the command line in linux – part 3



Now that we’ve logged in and learned how to move from one directory to another (and find where we are if we get lost…) it’s probably time to start learning how to find out about other commands. Well, if you press tab at the command line you will likely see something that starts like this….
$
Display all 4601 possibilities? (y or n)
and if you answer with a “y” you will see a long list of programs that could be run. That’s not usually the best way to find a program though.


One of the things I like in linux is good console based help features…. let’s say I want to burn a cd, but I don’t know what tool to use…. $apropos cd

I get a long list… but one entry that might catch the eye is ….
cdrecord (1) – record audio or data Compact Disks or Digital Versatile Disks from a master

okay, so how do we use it?

“cdrecord –help”

will tell us a lot, but might not be as helpful as….

“man cdrecord” which will give us a “manual” page as well….

most commands like cdrecord watch to see what “options” have been requested of the program. In the above example –help is an “option” –help is usually used to list what options a program accepts and gives a brief explanation of what each of those does.

If –help doesn’t work, you might try -h (windows tends to use /? ) Many times if you just type the command name without any options (and it expects something) you will get a brief listing of the most commonly used options (options are sometimes called “switches”)

Related Posts

Blog Traffic Exchange Related Posts
  • Quick way to make a text only banner image Linux.com has a great writeup on making banner images quickly and easily from the command line (or a script). The catch here is that text is the content for the image. Under linux that will require the following programs.... enscript and convert. Of course since this can be done from......
  • Linux - ToVid for vcd creation Linux.com has an article about ToVid, a utility to help convert video into VCD format. ToVid started out as just a VCD imager for mpeg files, but has expanded to be able to handle most video formats for input. It can also work with dvdauthor and other tools depending on......
  • Using the command line in linux - part 1 I know many people get intimidated with a black screen, white text and blinking cursor. No mouse, not knowing where to start.... well, I'm going to spend a bit of time in this article trying to help show you how to survive the command line in linux. For starters, don't......
Blog Traffic Exchange Related Websites
  • 4 Secrets To Do Extremely Well With Article Marketing If you have a small business you need to market it on the internet in as many ways as possible. Article marketing is undoubtedly one of the easiest and cheapest ways to get the word out about your website and your offerings. Anyone, including those who are new in the......
  • Can Hypnosis Help You Lose Weight? First of all, I'd like to thank Israel for the opportunity to be a guest blogger on this wonderful site he's created! He has done a super job with it and he's an inspiration to all of us. Whether you need to lose weight or would just like to be......
  • 10 Money Saving Tips for Your Home In the current economic climate, many households are trying to save money. Your home is probably one of your biggest expenses – so it could help to devise a saving strategy for your home. If you’re counting the pennies, take note of these simple tips: Energy aware: To help......
PDF24    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site