| < Day Day Up > |
top ”displays top CPU processestop [-] [d delay] [q] [c] [S] [s] [i]
top provides an ongoing look at the CPU's activity in real time and a listing of the most CPU-
|
| < Day Day Up > |
| < Day Day Up > |
touch ”updates access time and/or modification time of a filetouch [ amc ] [ mmddhhmm [ yy ] ] filename... touch causes the access and modification times of each argument to be updated. The filename is created if it does not exist. If no time is specified the current time is used. Example A.61.touch a b c EXPLANATION Three files, a , b , and c are created. If any of them already exist, the modification time-stamp on the files is updated. |
| < Day Day Up > |
| < Day Day Up > |
tput ”initializes a terminal or queries the terminfo databasetput [ Ttype ] capname [ parms...] tput [ Ttype ] init tput [ Ttype ] reset tput [ Ttype ] longname tput S <<
tput
uses the
terminfo
database to make the values of terminal-dependent capabilities and information available to the shell (see
sh
), to initialize or reset the terminal, or return the long
Example A.62.
1 tput longname
2 bold=`tput smso`
unbold=`tput rmso`
echo "${bold}Enter your id: ${offbold}\c"
EXPLANATION
|
| < Day Day Up > |
| < Day Day Up > |
tr
”
|
|
\11 |
Tab |
|
\12 |
Newline |
|
\042 |
Single quote |
|
\047 |
Double quote |
1 tr 'A' 'B' < filex 2 tr '[A-Z]' [a-z]' < filex 3 tr -d ' ' < filex 4 tr -s '' '' < filex 5 tr -s ':' ' ' < filex 6 tr '7' '2'
EXPLANATION
Translates As to Bs in filex .
Translates all uppercase letters to lowercase
Deletes all spaces from filex .
Replaces (squeezes) multiple tabs with single tabs in filex .
Squeezes multiple colons into single spaces in filex .
Translates double quotes to single quotes in text coming from standard input.
| < Day Day Up > |