Unix is an operating system that uses a command-line interface instead of a Graphic User Interface (GUI), like Windows. It is a powerful and stable operating system.
Logging onto a Unix account
- Contact the Arts Computing Office (ACO) if you are not sure if you have a Unix account.
- To log in:
- Run a Secure Shell Client (SSH) program such as PuTTY (available on all Nexus machines under Start Menu/Programs/Internet Tools/Remote Login).Â
- Enter the server/host name and click the Open button.
- Enter your userid and password when prompted.
Commands for managing Unix
General session commands
Command |
Command Action |
---|
logout |
Finish Unix session ("exit" can also be used) |
clear |
Clear the terminal screen |
passwd |
Changes your password |
history |
contains in its storage all the previous commands you typed at the shell prompt |
!Ìýcommand |
rerun command |
!! |
rerun last command |
man command |
manual for Unix commands (note: while informative, these can be very long) |
³¾²¹²ÔÌý-°ìÌý³¦´Ç³¾³¾²¹²Ô»å |
look up a command (used only in Watarts) ? |
command | more |
scrolls a page one at a time |
³¦²¹±ôÌýyear |
prints a calendar for current month, or the year specified |
date |
displays the date |
stty erase (press the Backspace key) |
uses "backspace" to delete letters or characters (instead of "delete") |
File commands
Command |
Command Action |
---|
ls |
list all files in a directory |
lc |
list all files and shows files and directories seperately; this is especially useful as Unix files don't always have extensions as in Windows, and it might be hard to other differentiate between files and directories |
±ô²õÌý-²¹ |
list files, including .xxx (configuration) files |
±ô²õÌý-³Ù |
list files by time last modified, most recent first |
±ô²õÌý-²¹lt |
±ô¾±²õ³ÙÌýall files in long format, sorted by time last modified and with more informative information such as file permissions and date last modified |
³¢²õÌý-³¦³ó* |
list files whose names start with ch (can look for any expession or characters) |
³¦»åÌýdirectory name |
move to the specified directory; cd .. moves to the directory directly above your last one |
pwd |
report the directory you are currently in |
³¾°ì»å¾±°ùÌýnew directory name |
make a directory |
³¦»åÌýdirectory |
change directory |
°ù³¾»å¾±°ùÌýdirectory |
remove directory |
³¦±èÌý-°ùÌý»å¾±°ù±ð³¦³Ù´Ç°ù²â1Ìý»å¾±°ù±ð³¦³Ù´Ç°ù²â2 |
copies directory1 and everything in it to directory2 |
du |
outputs number of kilobytes used by each subdirectory (useful in deciding which files to delete) |
quota -v |
checks allocated amount of disk space and how much has been used up to date |
df |
checks space left on file system |
°ù³¾Ìý´Ú¾±±ô±ð²Ô²¹³¾±ð |
delete a file |
³¾±¹Ìý´Ú¾±±ô±ð1Ìý´Ú¾±±ô±ð2 |
rename or move file1 to file2 |
³¦±èÌý´Ú¾±±ô±ð1Ìý´Ú¾±±ô±ð2 |
³¦´Ç±è²âÌý´Ú¾±±ô±ð1Ìý³Ù´ÇÌý´Ú¾±±ô±ð2 |
·É³¦Ìý-·ÉÌý´Ú¾±±ô±ð²Ô²¹³¾±ð |
counts the number of words in a file named filename |
grep keyword filename |
searches through a text file for a keyword or an expression |
spell filename |
check spelling of file |
Printing command
Command |
Command Action |
---|
±ô±è°ùÌýfilename |
prints filename to default printer |