... 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
...
... debugging when variables need to
be defined or have a real non-null value. The big advantage to this code is that the script
will exit at the line where the problem was found, and the line number ... 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...
... 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 ... entry to
/home/rbpeters. Pressing Enter then 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 ... 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 has been extremely...
... 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 ... kinds of scripts efficiently is command- line recall, which is
discussed in Chapter 15. If you make a mistake while typing (not unlikely when you’re
working with many lines at once), you can return...
... 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 ... two computers. It is most commonly
used as a secure commandline interface to a remote
computer. This means that you can access the
command line interface of the FreeNAS server from a
remote computer ... chapter 9. The commandline can
be used to rebuild the array rather than the web
interface. Once the new disk has been put back into
the system, you need to use the forget command.
This command sounds...
...
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 ... many cases, the following group of commands is
more appropriate to use to programmatically use a feature, rather than for regular use.
The format of the commandline needed for these switches is...
... section will give you an overview of most of 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 ... 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 ... 527-0883
Cisco Security Appliance CommandLine
Configuration Guide
For the Cisco ASA 5500 Series and Cisco PIX 500 Series
Software Version 8.0
Customer Order Number: N/A, Online only
Text Part Number:...
...
__________________________________________________________________________
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 ...
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 this mode? ... 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...