... 1
Starting Linux Command- Line
Administration
T
o unleash the full power of Linux, as a Linux administrator you will spend most of your time
typing commands on the Linuxcommand line, the so-called ... ARE
authenticated.
Command- Line Basics
The commandline is important, because a system administrator can do anything from it.
Linux has many, many commands, more than you will ever know, and new commands ... xvii
CHAPTER 1 Starting Linux Command- Line Administration
1
CHAPTER 2 Performing Essential Command- Line Tasks
. . . . . . . . . . . . . . . . . . . . . . 27
CHAPTER 3 Administering the Linux File System
...
...
■
ACCEPTING COMMAND- LINE OPTIONS, SWITCHES, AND PARAMETERS
35
x) set +x
;;
h) echo -e $Usage
;;
*) echo -e $Usage
;;
esac
done
}
The getopts command is invoked with a list of the valid ... colon character that starts this line is a valid shell command that performs no
active task. In this syntax it simply expands any arguments that may follow it on the line.
In this case we simply ... result, this command uses the value of the LOGNAME variable for the echo com-
mand, and sets the value of username to the value of LOGNAME.
32
CHAPTER 5
■
ACCEPTING COMMAND- LINE OPTIONS,...
... 154
CHAPTER 23
■
COMMAND- LINE E-MAIL ATTACHMENTS
fi
fi
else
echo $usage
exit 1
fi
Next the e-mail message is created, ... received it, I copied the headers
into the test message. I have preserved the line spacing of the copied message.
Notice the line in the preceding code that defines a boundary string ( mime-
attachment-boundary). ... destination address manually. Finally we remove the temporary file for cleanup.
151
■ ■ ■
CHAPTER 23
Command- Line E-mail
Attachments
I
often send e-mail to myself containing information gathered from...
... executes the command.
100
CHAPTER 15
■
COMMAND- LINE EDITING AND HISTORY
When you enter command mode you start at the bottom of your history and press the
K key to move back up through the list. ... com-
mand line is command and file completion. With this feature, you can start to type a path
or command, and once you’ve typed a sufficient number of characters for the path or
command to ... (down)
through the history list. Once you have found the desired command, you can make any
appropriate modifications and press Enter to run the command.
One last command- history function that...
... and reuse.
1. To read a file line- by -line where the lines contain more than a single “word,” refer to Chapter 10.
104
CHAPTER 16
■
SCRIPTING FROM THE COMMAND LINE
concurrent package installation ... lines at once), you can return to the previous (mistyped) command in
your history and then edit the command sequence using vi-style command- line editing.
You can also recall a previously entered ... THE COMMAND LINE
105
The last example is something I do fairly regularly. I often want to gather information
from each system named in a list of machines. This example shows how to get the list...
... IDE: ECLIPSING THE COMMAND LINE3 4
9810ch02.qxd 5/15/08 11:04 AM Page 34
The IDE: Eclipsing the
Command Line
T
here are two main ways you can work with Python: through the commandline or through
an ... you’ll learn how to use it both from the
command line and from within Eclipse using the Subversive plug-in.
CHAPTER 2
■
THE IDE: ECLIPSING THE COMMAND LINE4 0
9810ch02.qxd 5/15/08 11:04 AM Page ... 2
■
THE IDE: ECLIPSING THE COMMANDLINE 27
9810ch02.qxd 5/15/08 11:04 AM Page 27
Summary
Eclipse is an increasingly popular IDE that offers many advantages over the command line. It’s
free, and it...
... ping and arp from the Command
Line
In chapter 9, we looked at the ping and arp
commands. These are available from the web
interface but they are also available from the
command line. To ping another ... will
still be able to access the FreeBSD
command line via the SSH protocol.
Directory Listings (ls)
To see the contents of the current folder, you use the
ls (list) command:
freenas:~# ls
.cshrc .dialogrc ... of that process.
COMMAND
Shows the command which was given to launch the
program.
Finding a specific process in such a long list can be a
problem. To help, you can use the grep command to
look...
...
this commandline creates a new message with report.doc attached:
ã
"C:\Program Files\Microsoft Office\Office11\Outlook.exe "
ã
/a "C:\My Documents\report.doc"
The command- line ... "C:\My Documents\report.doc"
The command- line examples might be printed on two or more lines,
but when typing them in, use one line and leave a space before the
slash (/), as seen ...
You can use an email address or any resolvable name or distribution list in your
address book. Use it with the /c command- line parameter as in this example:
ã
Outlook.exe /c IPM.note /m diane@poremsky.com...
... the command- line switches
that are available.
Command- Line Syntax
In Table B-5, you can see all the command- line switches understood by the
Visual Basic .NET compiler. To get an instant listing ... tools and will also detail the command- line
usages of vbc.exe.
Command Utilities
In order to be able to run these command- line utilities, you must configure the
environment properly. The Visual ... the command
prompt to create Portable Executable (PE) files from your source files (see the previous
Command Utilities” section for information on how to set up the environment for
use with command- line...
... EXEC Mode (the enable Command)
6
43
Cisco Security Appliance CommandLine Configuration Guide
OL-12172-01
About This Guide
Document Conventions
Document Conventions
Command descriptions use ... ã
Examples depict screen displays and the commandline in
screen
font.
ã
Information you need to enter in examples is shown in
boldface screen
font.
ã
Variables for which you must supply a ... Access Lists
You can apply an access list to limit traffic from inside to outside, or allow traffic from outside to inside.
For transparent firewall mode, you can also apply an EtherType access list...
...
Step 6 List the show commands
a. List all show commands by entering show ? at the router privileged EXEC prompt.
Router#show ?
b. Is running-config one of the available commands from ...
__________________________________________________________________________
Step 9 Use the command history feature
a. Use the command history to see and reuse the previously entered commands. Press the up
arrow or Ctrl-p to see the last entered command. Press it ... configuration by using the command show running-config at the
privileged EXEC router prompt.
Router#show running-config
b. List six key pieces of information shown with this command:
...
... ụ
root (bao g m c file n).ồ ả ẩ
command
option
arguments
1
The Command
The Command
Line
Line
Tài Li u H ng D n H c ệ ướ ẫ ọ
Tài Li u H ng D n H c ệ ướ ẫ ọ
Linux LPI
Linux LPI
www.athena.edu.vn
www.athena.edu.vn
Biên ... 2
The Command Line
The Command Line
Giới thiệu dòng lệnh
Cú pháp dòng lệnh
Một số lệnh thông dụng
Chuyển hướng ... Linux.
V i h đi u hành Unix và Linux, các thao tác ớ ệ ề
đ h a không th đáp ng đ công vi c c n ồ ọ ể ứ ủ ệ ầ
thi t. Dòng l nh là công c h u hi u nh t.ế ệ ụ ữ ệ ấ
Dòng l nh trong Unix và Linux...
... sao lưu theo ý muốn của bạn. Tại câu
lệnh này, Tar là 1 chuẩn định dạng file nén phổ biến trong Linux, tương tự như zip
nhưng hiệu quả hơn nhiều, còn -vcf là 1 lựa chọn khác của hệ thống, với...