Unix Commands Reference Card: Working With NFS Files
Unix Commands Reference Card: Working With NFS Files
Unix commands
reference card
This shared file system means that you can access, for
example, your Chrome files even when you are logged into
Cobalt, and vice versa. However, if you are logged into
Chrome, you can only use the software installed on Chrome
only users directories are linked together, not system
directories.
January 1998
UC9801.b017
I N D I A N A
U N I V E R S I T Y
Environment Control
Environment Status
Command
cd d
mkdir d
rmdir d
mv f1 [f2...] d
mv d1 d2
passwd
alias name1 name2
unalias name1
Command
ls [d] [f...]
ls -1 [f...]
alias [name]
printenv [name]
quota
date
who
whoami
finger [username]
chfn
pwd
history
!n
rlogin nd
logout
setenv name v
unsetenv name1 name2...]
Description
Change to directory d
Create new directory d
Remove directory d
Move file f to directory d
Rename directory d1 as d2
Change password
Create command alias
Remove command alias
name1
Login to remote node
End terminal session
Set env var to value v
remove environment
variable
Description
Output file f to line printer
Save terminal session to f
Stop saving terminal
session
Send mail to user
Instant notification of mail
UNIX manual entry for
name
Online tutorial
Process Control
Command
Ctrl/c *
Ctrl/s *
Ctrl/q *
sleep n
jobs
kill [%n]
ps
kill -9 n
Ctrl/z *
stop %n
command&
bg [%n]
fg [%n]
exit
Description
Interrupt processes
Stop screen scrolling
Resume screen output
Sleep for n seconds
Print list of jobs
Kill job n
Print process status stats
Remove process n
Suspend current process
Suspend background job n
Run command in background
Resume background job n
Resume foreground job n
Exit from shell
Description
List files in directory
List files in detail
Display command aliases
Print environment values
Display disk quota
Print date & time
List logged in users
Display current user
Output user information
Change finger information
Print working directory
Display recent commands
Submit recent command n
File Manipulation
Command
vi [f]
emacs [f]
ed [f]
wc f
cat f
more f
cat f1 f2 > f3
chmod mode f
cmp f1 f2
cp f1 f2
sort f
split [-n] f
mv f1 f2
rm f
grep ptn f
diff f1 f2
head f
tail f
Description
Vi fullscreen editor
Emacs fullscreen editor
Text editor
Line, word, & char count
List contents of file
List file contents by screen
Concatenates f1 & f2 into f3
Change protection mode of f
Compare two files
Copy file f1 into f2
Alphabetically sort f
Split f into n-line pieces
Rename file f1 as f2
Delete (remove) file f
Outputs lines that match ptn
Lists file differences
Output beginning of f
Output end of f
Compiler
Command
cc [-o f1] f2
lint f
f77 [-o f1] f2
pc [-o f1] f2
Press RETURN at the end of each command, except those marked by an asterisk (*).
Description
C compiler
Check C code for errors
Fortran77 compiler
Pascal compiler