Doctor Bob
Linux Topic Search
TOURBUS
HOME PAGE
SAVVY
CONSUMER
FREE TECH
SUPPORT

LINUX COMMANDS

What Are The Most Important Linux Commands?

Working from a Linux command line is not always intuitive, especially since there are hundreds of different commands with a myriad of switches and flags to make things even more confusing. You certainly don't need to know all of them to make good use of your Linux system, but there is a certain set of indispensable tools with which you should be familiar.
We've covered a handful of commands in previous sections that let you work with the shell and your file system. The commands covered in this section will complement what you've learned and give you some essential tools to manage your Linux environment. (You'll also be able to use these commands on other Unix-based systems.) You'll pick up other important commands in the "Text Editors" and "Slicing and Dicing" sections but you should first master this starter set to build the skills that will help you perform common Linux tasks more easily.

If You Need Help, Ask the man

Assuming you can remember the right command for a particular job, it's tougher still to remember all the switches associated with that command. The man command (short for manual) will help you on both counts by displaying pages from online manuals and telling you which commands may be relevant to the task at hand.

Say you want to change your password, but you don't know the command to do it. You can use the man command plus the keyword flag, -k, to search by keyword password for relevant commands:

man -k password
passwd passwd (1) - change login password
pwck pwck (1m) - password/group file checkers
vipw vipw (1b) - edit the password file

You can probably deduce that passwd is the correct command. But before blindly issuing any Linux command, you should know the proper syntax and understand what the command might do to you first. Using man with a command name will display all you need to know (probably more) about a command. For example, entering

man passwd

will display

passwd(1) User Commands passwd(1)
NAME
passwd - change login password and attributes
SYNOPSIS
passwd [ name ]
passwd [ -d | -l ] [ -f ] [ -n min ] [ -w warn ]
[ -x max ] name
passwd -s [ -a ]
passwd -s [ name ]

DESCRIPTION
The passwd command changes the password or lists
attributes associated with the user's login name.
--More--(5%)

(The man command pauses after each screenful and waits for you to press the spacebar before continuing.) The word More at the bottom of each page indicates how much of the help has so far been displayed. The terms in square brackets are optional parameters (-d, -l, -f, for example); vertical bars indicate that the terms on either side are mutually exclusive--you can use only one at a time.

For more information on the man command, see the man manual.

Previous Lesson: Changing File Permissions
Next Lesson: Changing Your Password

[ RETURN TO INDEX ]

Comments

Ajeet kumar     (21 Jan 2010, 22:39)
Its really nice commands.......
codjoe benjamin     (05 Feb 2010, 00:26)
hi, i will be much pleased if you could send me a beginners lesson on linux. i dont have any idea about it.
kalai     (05 Feb 2010, 04:53)
hi,how i ll retrive the file from hardisk and memory in linux,which command ll be use.plz help me
Bob Rankin     (05 Feb 2010, 06:14)
@codjoe - Your wish is granted! Please begin reading the lessons on this site.

@kalai - Your question is too general. There are dozens of commands to read files from disk, depending on what you want to do with the data. See the Linux Commands section in the navbar here.

*Name:
Email:
Notify me about new comments on this page
Hide my email
*Text:
 

Ask Bob Rankin - Free Tech Support
<Send This Link to a Friend>         <Bookmark This Page>


Copyright © by Bob Rankin
All rights reserved - Redistribution is allowed only with permission.