Unix and Linux Command Quick Reference Page
File Management
|
Lists the contents of your working directory.
All of these switches can be combined, so one might type |
|
Copies a file to a specified location. Can be used to copy a directory with files in it using Usage: Examples: |
|
Moves (or renames) a file to a specified location. Similar to Usage: Examples: |
|
Deletes file(s) or directory trees. There is no undoing! Can be used to delete all files and subdirectories with Usage: Examples: |
|
Prints the working directory. This could be called your current path or view. |
|
Changes your working directory or view or where you're “in” to another specified location. Usage: Examples: |
|
Creates a new directory. You can specify a location if you like. Usage: Examples: |
|
Removes (deletes) a directory. You can only use this on empty directories. Usage: Examples: |
|
Lists all files and folders with their associated total sizes in KiloBytes. Usage: Examples: |
|
Displays your current disk and print quota usage. The –w option allows you to see work directory quotas as well. Usage: |
|
See description under Remote Access. Copies files or directories from one user account to another. |
|
Modifies the permissions of files or directories. Permissions are rules about how and which users can access the files or directories. The three switches covered here are: Usage: Examples: |
|
Creates a symbolic link to a file or directory. Symbolic links are analagous to windows shortcuts, and are simply pointers. You can create one in your home directory to avoid having to cd into another directory you use frequently. Usage: Examples: |
|
It's just like above, except you won't get the very data saving confirmation messages if you're deleting many files. An alternative is to |
Program Management
|
The man unix tool is shorthand for "manual." Most unix programs and utilities have brief documentation installed on the system. In order to access these online manuals, Usage: where [program name] is a unix utility or application such as those in this guide. Note: Not all utilities and applications have "man" pages. Check the EWS Software guide at https://www-s.ews.uiuc.edu/software/ or ask a lab operator for more assistance. |
|
There are many types of files that are commonly used in unix systems that may never be seen by an individual that is only familiar with Windows. The "apropos" utility is a helpful tool for finding the proper utility or application that opens a particular file type. Note that apropos may not be aware of all filetypes. Usage: Example: Note: This utility currently works correctly only on linux workstations. |
|
The top utility displays a list of the top ten (default number) programs running ordered by how much cpu or computing power the programs are using. A user can stop programs that they started from this screen by pressing 'k' then entering the Process ID (first column number) and pressing enter. In order to quit top simply press 'q'. |
|
The ps utility is another way to display a list of programs running on the system. Just typing ps will display a list of programs that have been started from the particular terminal window that the user is in. In order to see a more useful list of all programs running on the system, Usage: Example: |
|
Use this unix utility in conjunction with ps in order to end a running program on the system by the Process ID (first column in Usage: Example: |
Printing
|
Usage: If you leave out the Examples: |
|
Usage: Example: |
|
The Acrobat Reader allows users to view and print PDF files. It can be invoked by typing acroread from the command line. Usage: Once acrobat is running, the file to be viewed can be chosen by clicking File and Open. Scroll up and down the list to find the desired file, and click on that file to open it. |
|
GhostView is a program to view and navigate through PostScript and PDF documents on an X display, by providing a user interface for the ghostscript interpreter. GhostView can be started by typing Usage: |
|
Print Queues are used to print your job after it has been spooled to the printer. Usage: |
Remote Access
|
Secure Shell is a program to log into another computer over a network, to execute commands in a remote machine, and to move files from one machine to another. It provides strong authentication and secure communications over insecure channels. Usage: Examples: For more information regarding remote access including X11 forwarding refer to http://www.ews.uiuc.edu/clrtxt/ |
|
The sftp utility is the secure version of ftp and works almost identically. Ftp is a file tranfer protocol that allows you to upload and download files to a computer running an sftp server (all EWS machines do as part of ssh access). Usage: For more information about ftp commands and transfering files, see this concise command reference or others. |
|
Copies a single file or a folder with multiple files using secure protocol over TCP/IP (the network) from one computer to another. This is rarely useful within the EWS environment, since your home directory is mounted on all workstations. However, it may be useful to copy to another machine on or off campus that runs an ssh server. To copy one file from a remote workstation to your workstation Where [local path] is the location where you wish to save the copied file (the location To copy an entire folder as above respectively Examples: |
|
These remote access methods are unsupported. These methods do not use encryption and therefore are not part of EWS's commitment to using secure communication. See http://www.ews.uiuc.edu/clrtxt/ for more information. |
Common Tasks
Mozilla lock files |
When mozilla exits abnormally such as when mozilla exits unexpectedly due to a programming bug, a lock file can sometimes be left behind causes the mozilla profile that was used to become unusable. In order to find this file, Use: Once you have found the file's location, use the |
|
The Use: Note: This will erase any customizations you have added to your startup files. |
|
This utility is an easy way to ensure that permissions on your web space files are correct. Simply run this utlity and the permission on all files and directories in your |
Using disks and cdroms |
Before you can access your disk, you must first mount it. To do this, place the disk in the drive and from the Unix or Linux prompt type volcheck . The machine will check for any new disks and mount them appropriately. The files on the mounted disk will be found in either Usage: |
EWS Manager:
manager_AT_ews.uiuc.edu
©2002 Engineering
Workstations,
College
of Engineering,
Departmental
Services (DS),
Campus Information
Technologies and Educational Services (CITES),
University of
Illinois at Urbana Champaign

