login: kellyk kellyk's Password: ************************************************************ * Welcome ************************************************************ * * Hello * * There is no system maintenance scheduled today. * * * Thank you for choosing Sunny Oasis! * ************************************************************ %
command option(s) argument(s)
date
cd newdir
wc -w file1 counts the words in file1
wc -c file1 counts the characters in file1
wc -l file1 counts the lines in file1
cat file1 file2 file3
ls -als
cd newdir ; ls -l
cp /users/kelly/recipe kelly.recipe ; \\\\
lpr -Pps3 #6m kelly.recipe
NEWLINE - initiates command execution
; - separates commands on same line
( ) - groups commands or identifies a function
& - executes a command in the background
| - pipe
> - redirects standard output
>> - appends standard output
< - redirects standard input
* - wildcard for any number of characters in a
file name
? - wildcard for a single character in a file
name
\\\\ - quotes the following character
' - quotes a string preventing all substitutions
\\\" - quotes a string allowing variable and
command substitution
` - performs command substitution
[ ] - denotes a character class in a file name
$ - references a variable
{ } - command grouping within a function
. - executes a command (if at beginning of line)
# - begins a comment
: - null command
ls *.txtWill match the following files:
chapter1.txt doc.txt memo.txt a.txtWill not match the following files:
doctxt txt.memo
ls ???.txtWill match the following files:
one.txt doc.txt two.txtWill not match the following files:
chap1.txt doctxt
ls chapter[1-3].txtWill match the following files:
chapter1.txt chapter2.txt chapter3.txtWill not match the following files:
chap1.txt chapter4.txt
CTRL-u - erase everything you've typed on the command
line
CTRL-c - stop/kill a command
CTRL-h - backspace (usually)
CTRL-z - suspend a command
CTRL-s - stop the screen from scrolling
CTRL-q - continue scrolling
CTRL-d - exit from an interactive program (signals end
of data)
Note that what you type will not appear on the screen for security reasons. For example:
passwd
Old password: - enter your current password
New password: - enter your new password
Retype new password: - re-enter your new password
If you make a mistake, the message: Mismatch - password unchanged. is displayed and your password remains unchanged. Try again.
Don't
Do
Section Description
------- -----------
1 User Commands
2 System Commands
3 Subroutines
4 Devices
5 File Formats
6 Games
7 Miscellaneous
8 System Administration
l Local Commands
n New Commands
man cp--More--23% at the bottom left of the screen means that only 23% of the man page is displayed. Press the space bar to display more of it or type q to quit.
man 8 telnetd
man -k mail
man -k 'copy files'
whatis morewill display what the \\\"more\\\" command does:
more, page (1) - browse or page through a text file
who
who am i
finger doe
finger userid
The simplest way to accomplish the logout is to just issue the logout command again. Your suspended/background jobs will be terminated and you will be logged off the system.
To logout, issue the exit command and then try to logout again.