0% found this document useful (0 votes)
46 views

Unix Commands Reference Card: Working With NFS Files

Files saved on the central Unix computers at the University are stored on a shared Network File System (NFS). Users can access their files from any of the central computers by using the command cd and specifying the path to their directory on the desired system. For example, a user logged into Copper could access their files on EZinfo using the command cd /N/u/username/Ezinfo/. This allows users to manage their files across systems using standard Unix commands like mv and cp.

Uploaded by

svdontha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Unix Commands Reference Card: Working With NFS Files

Files saved on the central Unix computers at the University are stored on a shared Network File System (NFS). Users can access their files from any of the central computers by using the command cd and specifying the path to their directory on the desired system. For example, a user logged into Copper could access their files on EZinfo using the command cd /N/u/username/Ezinfo/. This allows users to manage their files across systems using standard Unix commands like mv and cp.

Uploaded by

svdontha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

U N I V E R S I T Y IN F O R M A T I O N TE C H N O L O G Y S E R V I C E S

Working with NFS files


Files saved on the UITS central Unix computers Chrome,
Cobalt, Zinc, Copper, EZinfo, and STARRS/SP are stored
on the Network File Server (NFS). That means that your
files are really on one disk, in directories named for the
central Unix hosts on which you have accounts.
No matter which of these computers you are logged into,
you can get to your files on any of the others. Here are the
commands to use to get to any system directory from any
other system:
cd /N/u/username/Chrome/
cd /N/u/username/Cobalt/
cd /N/u/username/Zinc/
cd /N/u/username/Copper
cd /N/u/username/Ezinfo/
cd /n/u/username/SP/
Be sure you use the capitalization just as you see above,
and substitute your own username for username.
For example, if Jessica Rabbit is logged into her account on
Copper, and wants to get a file on her EZinfo account, she
would enter:
cd /N/u/jrabbit/Ezinfo/
Now when she lists her files, shell see her EZinfo files,
even though shes actually logged into Copper.
You can use the ordinary Unix commands to move files,
copy files, or make symbolic links between files. For
example, if John Doe wanted to move file1 from his
Copper directory to his EZinfo directory, he would enter:
mv -i /N/u/jdoe/Copper/file1 /N/u/jdoe/Ezinfo/

Unix commands
reference card

Abbreviations used in this pamphlet


Ctrl/x
d
env
f
n
nd
var
[y/n]
[]
...

hold down control key and


press x
directory
environment
filename
number
computer node
variable
yes or no
optional arg
list

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

To access this guide on the


World Wide Web, set your browser to
http//www.indiana.edu/~ucspubs/b017/

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

Output, Communication, & Help


Command
lpr -P printer f
script [f]
exit
mail username
biff [y/n]
man name
learn

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

You might also like