> ⟵ Normal user prompt
>
# ⟵ Super-user prompt (commands requiring super user (uid 0) access)
#
Often the super user in Linux and Unix systems is the account by the name of 'root', but that is only a convention. The super user (or priviledged) account may have any name so long as it is using the UID (user ID) of 0. A group ID of 0 has no special significance. Multiple usernames may have the same UID, including UID 0.
[ word ] ⟵ indicates that word is optional.
[
]
< word > ⟵ replace word with what it represents. Don't include the <>'s as part of word.
<
To change your password, at a terminal prompt:
> passwd
To change your finger (identity) information (information that is viewed with the 'finger' command:
finger
> chfn
The man command:
man
> man [<section>] <command|config_file|topic> > man -k <search>
> man [<
>]
|
> man -k <
Section What is found in that section 1 User Commands 2,3 System Calls / C Library Functions 4 Devices and Special Files 5 File Formats and Conventions 6 Games et. Al. 7 Miscellaneous 8 System Administration tools and daemons
> man man
> info <command>
> info <
/usr/doc/*
/usr/src/linux/*
google.com
wikipedia.org
ls
[<
cd <
cp <
> <
mv <
rm <
mkdir <
rmdir <
ssh <
>@<
scp <
sftp <
rsync <
Quiz 1 - Basic Unix commands quiz
vi is usually a link to vim or elvis. Vi is the default editor for Unix systems and a system administrator should learn to use it since it may be the only available editor on a newly installed system.
In vi there are 2 edit modes, 'command mode' & 'insert mode'. Use the escape key to switch back to command mode when in insert mode.
In command mode the letters you type are edit commands.
[<#>]<cmd>
>]<
Quiz 2 - Vi commands quiz
\
~ (tilde)
~
cd ~ cp xy ~/dir/
cd ~
cp xy ~/dir/
~user
cp ~user/public_html/cs469/code/xx .
* (asterisk)
*
R*
*.txt
? (question mark)
?
b???
b
[...] (brackets)
[...]
-
[a-z]
cs469[0-9][0-9]
[^...]
*.[^ch]
{<pattern>,<pattern>,...}
{<
>,<
>,
}
ls -la {a,[q-t],z}*
Quiz 3 - Basic wildcards quiz