Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION Instrukcja Użytkownika Strona 256

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 300
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 255
244 You Are Here
Summary: Piping allows you to send the output of one command as the input of an-
other command. For example: ls -al /etc | more pipes the output of the ls com-
mand to the more utility for easy viewing.
16.11 Stringing Commands Together
Linux allows you to enter multiple commands at one time. The only requirement is that you separate
the commands with a semicolon (you can see an example in Figure 16.14).
Want to see how long youve been online using Netscape? Just combine the date command with
Netscapes command.
date; netscape; date
Remember that commands are case sensitive, so the command to start Netscape must be in lower-
case to start the browser.
In the xterm window, well see something like this:
[billy@localhost billy]$ date; netscape; date
Saturday Mar 27 21:26:27 EST 1999
Well see the second date entry when we close out of Netscape. Then, our screen will look like this:
[billy@localhost billy]$ date; netscape; date
Fri Mar 26 13:26:27 EST 1999
Fri Mar 26 14:28:32 EST 1999
[billy@localhost billy]$
And the prompt will return. The discrepancy between the two results from the date command
shows that we were using Netscape for just over an hour.
16.12 Ownership and Permissions
Earlier in this chapter, when we tried to cd to roots login directory, we received the following
friendly message:
[billy@localhost billy]$ cd /root
bash: /root: Permission denied
[billy@localhost billy]$
Przeglądanie stron 255
1 2 ... 251 252 253 254 255 256 257 258 259 260 261 ... 299 300

Komentarze do niniejszej Instrukcji

Brak uwag