UNIX/AFS User Commands. Information technology resources and support for LSA faculty, staff, and department system administrators.



accessible view | jump to content | search | jump to site-wide navigation

UNIX/AFS User Commands

Action to be PerformedUNIX/AFS
Command
DOS/Netware
Command
1: Windows only
2: XWindows only
3: AFS command
4: Netware command
5: System administrator
6: Only displays users on current machine
Abort^c^c
Backup files to tape or disktar -cvf /dev/rmt/05backup C:\ A: /S
Bring specific background job into foregroundfg %n or click on icon2double-click on icon1
Change file attributes (Read or Executable)chmod <rights> <file> (e.g. chmod 777 data)attrib or flag4
Change directory attributesfs setacl <dir> <user> <rights>3flagdir4
Change passwordkpasswd3setpass4
Change to parent directorycd ..cd..
Change to root directorycd /cd\
Change context to [Root]n/acx /r4
Clear screenclearcls
Compare two filescmp file1 file2comp file1 file2
Concatenate filescat file1 file2 file3 >bigfilecopy file1+file2+file3 bigfile
Copy a filecp file1 file2copy file1 file2
Copy files and subdirectoriescp -r * <new dir>xcopy *.* P: /s/e
Copy files with permissionscp -p * <new dir>N/A
Create a short batch or script filecat >file (use ^D to end)copy con <file> (use ^Z to end)
Create symbolic links for long directory pathsln -s /afs/lsa.umich.edu/group/admin/ffive ffivesubst e: c:\wp\soc325\students
Delete a filerm file(s)del file(s)
Delete all files in directoryrm *del *.*
Delete files beginning with xrm x*del x*.*
Delete files with bak extensionrm *.bakdel *.bak
Delete subdirectory treerm -r <dir>deltree <dir>
List current directorypwdcd
List current directory and subdirectoriesls -Rtree/f
Determine disk useage and capacityfs lq <dir>3 or dfchkdsk
Determine status of a userfinger <user name>N/A
Determine version of operating systemuname -srver
Display all active network userswho or w or finger6userlist4
Display datedatedate
Display file and pause screenmore file or pg filemore < file
Display file with line numberscat -n fileN/A
Display or change terminal settingssttymode
Display path segment used by commandwhich <command>N/A
Display running processes by usertop -U<username>N/A
Display search pathecho $pathpath or map4
Display the environment settingset (shell only), setenv (general settings)set
Display timedate '+%H:%M:%S'time
Display user namewhoamiwhoami4
Display users logged into your workstationusers, w, who, fingerN/A
Edit a filepico <file>edit <file>
Enable the help systemman <command>help <command>
Invoke the command processor or shellsh(Bourne shell), csh(C shell), tcsh(t-c shell)COMMAND
List background jobsjobsview minimized icons1
Locate a file in the directory treefind . -name <file> -printN/A
Make a directorymkdir <dir>md <dir>
Move a group of filesforeach i ( * ) # Or any other list of files.
mv $i /some/other/directory/$i
end
move <file(s)> <destination>
Print a filelpr -P<printer> <file>print <file>
Print a file and get a mail receipt when donelpr -m -P<printer> <file>capture noti4
Print manual page for commandman command | lpr -P<printer>command/? >file
print <file>
Remove an existing aliasunalias <name>ALT-F10
Remove a directoryrmdir <dir>rd <dir>
Rename a directorymv <olddir> <newdir>rendir <olddir> <newdir>
Rename a filemv <oldfile> <newfile>rename <oldfile> <newfile>
Rename multiple filessee "move a group of files".
Repeat last command!! or up arrow in t-cshF3 or up arrow
Restart a job in the backgroundjobs   # to list jobs
fg %n  # bring 'n' job to foreground
n/a
Restore files from backuptar -xvf /dev/rmt/05restore a: c:\ /s
Run a job in the background<command> &N/A
Run a job in the background and logoutnohup <command> &; logoutN/A
Search for text in a filegrep <pattern> <file(s)>find "<text>" <file>
Search help system by keywordman -k <keyword>N/A
Suspend existing running background jobsstop %nN/A
Suspend job - place into background^Z
bg
N/A
Talk with an active usertalk <user>@<host>send "<msg>" to <user>4
Terminate a processkill <pid>N/A
Terminate a process with malicekill -9 <pid>N/A
Updates file modification date to current datetouch <file>N/A
View a calendarcal <mm> <yyyy>N/A
View a directory listinglsdir
View file contentscat <file> or more <file>type <file>
View tree below current contextN/Acx /t4

back to top


back to top