Web Hosting Forum - A Web Hosting community for Webmasters


Divi WordPress Theme

Author Topic: Linux Tips on Using Multiple Options with a Linux Command  (Read 2246 times)

0 Members and 1 Guest are viewing this topic.

Offline Tech

  • Junior Guru
  • **
  • Posts: 183
  • iTrader: +2/-0
    • View Profile
Linux Tips on Using Multiple Options with a Linux Command
« on: August 29, 2007, 02:30:44 AM »
Linux distributions (versions), especially the major Linux distros, include several "point-and-click" Linux GUI utilities. These utilities can be used to do Linux administration task. However, you have to do an awful lot of pointing and clicking to get anything done in these Linux GUI utilities.

What takes several clicks (and way too much time) with a Linux GUI utility can be done almost instantly by running a Linux command. However, new Linux users usually find Linux commands tricky to learn - but they are well worth learning. Also, if you are working on some kind of Linux certification, you will get tested on Linux commands, not on Linux GUI utilities.

Another benefit of learning Linux commands is that they are virtually identical on all 130 + Linux distributions. So, the best way to learn how to use Linux, to do Linux system administration, is to learn how to use Linux commands.

Linux tips: When you get Linux training, including Linux certification training, be sure to learn how to use Linux commands. Don't waste time learning Linux GUI utilities.

Linux Tips - How to Use Multiple Options with a Linux Command

1. Most Linux commands have several options.

Linux command options are used to control the output of a Linux command - and some Linux commands have over 50 options!

2. For almost all Linux commands, the options are prefixed with a - (dash).

For example, the following Linux command runs the ls command with the l (el) option. The l stands for "long" and it gives you a longer (and more detailed) listing of files and directories in the Linux file system.

]# ls -l

Linux Tips: In these examples, the ]# represents the Linux command line prompt. You don't type in the prompt!

3. Linux command options can be combined.

The ls command is used to list the directories and files in the Linux file system. It has an l (for long) option and an a (for all) option. The a option shows "all" files, including hidden files.

The following command uses the l and a options to give you a long listing of all files.

]# ls -l -a

4. Linux command options can be combined without a space between them and with a single - (dash).

The following command is a faster way to use the l and a options and gives the same output as the Linux command shown above.

]# ls -la

5. The letter used for a Linux command option may be different from one command to another.

For example the -r option of one command may not provide the same output as the -r option for another command.

You can learn how to use Linux commands easily by watching Linux video tutorials.

When you watch a Linux video tutorial, you get to see, hear and do! You get to watch the command being typed in and hear an explanation of why you run the Linux command. Then you can pause the video tutorial and run the Linux command yourself!

Article Source: http://EzineArticles.com/?expert=Clyde_Boom
« Last Edit: January 01, 1970, 05:30:00 AM by Tech »

Divi WordPress Theme
Tags:
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2652 Views
Last post October 26, 2007, 03:12:14 PM
by Tech
0 Replies
2375 Views
Last post October 26, 2007, 03:17:11 PM
by Tech
3 Replies
1206 Views
Last post January 28, 2016, 12:54:19 PM
by hmb-willem
0 Replies
346 Views
Last post June 16, 2016, 01:05:09 PM
by David
0 Replies
104 Views
Last post August 14, 2017, 05:20:03 PM
by WHUK