pwd -- Show current working directory
cd (directory name) -- Change directory
cd -- Change to home directory
mkdir (directory name) -- Create a directory
rmdir (directory name)-- Remove an empty directory
ll -d (directory name) -- Display permissions for a directory
chmod (permission numbers) (name) -- Change permissions for a file or directory
chmod (class=permissions) (name) -- Symbolically change file or directory permissions
Working with Files:
elm -- Read Mail
ls -- List files and directories in current directory
ls -a -- List all files or directories, including hidden files
lsf -- List files, and show directories with "/"
ll (file name) -- Display permissions for a file
vi (file name) -- Create or edit a file using the vi editor
more (file name) -- Display file contents
cp (filename) (file copy) -- Copy a file
mv (old file/directory) (new file/directory) -- Move a file/directory to a new file/directory
cat (file1) >> (file2) -- Append file1 onto the end of file2
rm (file) -- Remove file
head (file name) -- Display the first 10 lines of a file
tail (file name) -- Display the last 10 lines of a file
spell (file name) -- Check the spelling in a file
lp (file name) -- Print a file to the default printer
Finding and Organizing:
find . -name x* -print -- Find file(s) beginning with "x" in current and subdirectories
grep (word) * -- Find all occurrences of "word" in all files in current directory
sort +1 (listfile) -- Sort "listfile" of two-word names by last name
date -- Display date and time
alias -- List all alias
man (command name) -- Find HP-UX command information
echo $PATH -- Determine PATH setting
System Operations:
clear -- Clear Screen
set -o (editor name) -- Set command-line editor
TERM=(term type) -- Set terminal type
ps -ef -- List current process status and Process Identification Numbers (PID's)
kill PID -- Kill (terminate) a process
passwd -- Create or change a password
(command) < (infile) -- Redirect input from a file to a command
(command1) | (command2) -- Connect two processes with a pipe
Network Operations:
ftp (remote host) -- Invoke FTP and connect to a remote host
get (remote file) -- Copy files from remote host using ftp
put (local file) -- Copy local files to remote host using ftp
bye -- Exit ftp
rcp (local file) (remote host name:remote file) -- Copy a file from your local file to a file on a remote host
rcp (remote host name:remote file) (local file) -- Copy a file from a remote host to your local directory
rlogin (remote hostname) -- Log in on a remote system
telnet (remote hostname) -- Log in on a remote system