Advance Server Admin Command
Command |
Summary Use |
du |
The du command prints a summary of the amount of
information you have stored in your directories on the mounted disks. |
grep |
The grep command searches text files for a particular
word or string of words. Very helpful when trying to find that
needle in a haystack, like a particular line in a large log file. |
Head
Tail |
head: prints the beginning of
a text file |
locate |
Trying to find out where on your Linux server a particular
file resides? Having a real nasty time doing it? If you have the Bash shell
you can try using the locate command to identify where it is on your mounted
drives. |
Nice
Nohup |
Nice: runs programs/commands
at a lower system priority |
ps
related
to "stopped jobs" |
The ps command displays all of the existing processes.
This command is also directly linked to issues with stopped processes (also
known as "stopped jobs"). |
stty |
The stty command allows you to view a listing of
your current terminal options. By using this command, you can also remap
keyboard keys, tailoring to your needs. |
talk |
In order to contact someone who is on the system, at the
prompt you type: talk accountname . Replace accountname
with the full account name of the person. If you don’t want anyone to disturb
you using the talk command, at the prompt |
tar
also
related to gzip |
You're bound to come across files that are g-zipped and
tarred. Okay, now what? These are methods of compressing and storing
directories and files in a single "file." Most new Linux programs
come off the web as something like coolnew-game.4-4-01.gz. This file is
likely a tar file that has then been gzipped for compression. The way to
handle these files is simple, but requires that you put the file into an
appropriate directory. In other words, don't plop the file in your root or
/bin unless it belongs there.
Now you can do a one fell swoop
un-gzip it and untar it into its original form (usually multiple files in
many sub directories) by typing: tar
-xvzf *.gz |
w |
This command allows you to list all users’ and their
processes who are currently logged in to the Linux server, or a particular
user’s processes. Type: w to view all users’ processes. Type: w jsmith
to view jsmith’s processes. We use this all the time from a system admin
standpoint. Please also see more commands to get user information on this
page. You need to know who logs on to your system! Okay, so you
have a stand alone Linux box and no one else uses it? Try this command just
to be sure. ;) |
!! |
Don’t waste time and energy retyping commands at the
prompt. Instead, use the ! option. To automatically re-display the
last command you typed at the prompt, type: !! and press enter. Press
again to invoke the command. You can also automatically re-display a command
you typed earlier by using the ! and the first few letters of the
command. |
|
|