intro_operating_system
Operating System Information
Application program development presently takes place on the Linux
operating system.
The most commonly used text editors used here are nedit, emacs, and vi.
Linux Commands:
Command Meaning
------------------------------------- ----------------------------------------
dir display files in the current directory
------------------------------------- ----------------------------------------
ls -l display files in the current directory
--------------------------------------------------------------------------------
cd {directory} move to a different directory
--------------------------------------------------------------------------------
cd .. move to the parent directory
--------------------------------------------------------------------------------
cd - move to the last directory
you were in
--------------------------------------------------------------------------------
pwd display what the current directory is
--------------------------------------------------------------------------------
mkdir {directory} creates a subdirectory of the current
directory
--------------------------------------------------------------------------------
rmdir {directory} deletes a subdirectory of the current
directory
--------------------------------------------------------------------------------
cat {file} displays a file
--------------------------------------------------------------------------------
cp {source_file} {dest_file} copies a file
--------------------------------------------------------------------------------
mv {old_file_name} {new_file_name} renames a file
--------------------------------------------------------------------------------
rm {file} deletes a file
(file spec can contain wildcards (*))
--------------------------------------------------------------------------------
lpr -P {queue} {file} prints a file
--------------------------------------------------------------------------------
pprint -P{queue} {file} prints a file
--------------------------------------------------------------------------------
diff {file1} {file2} compares two files and displays any
differences
--------------------------------------------------------------------------------
grep {string} {file_spec} searches file(s) for a string
(file spec can contain wildcards (*))
--------------------------------------------------------------------------------
find . -name {file_spec} searches directories for files whose
names match a string
--------------------------------------------------------------------------------
ps -aux shows all processes running on your node
--------------------------------------------------------------------------------
ps -U {user name} shows all processes running on your node
belonging to a given user
--------------------------------------------------------------------------------
date displays the current system date
and time
--------------------------------------------------------------------------------
rsh -F {node} allows you to log into another node
--------------------------------------------------------------------------------
export {name}={value} allows you to set an environment
variable
--------------------------------------------------------------------------------
echo ${name} allows you to display the value of an
environment variable
--------------------------------------------------------------------------------