User Tools

Site Tools


unix_survival

This is an old revision of the document!


UNIX Command Reference

The command prompt in UNIX is called the shell. Here is a list of common UNIX commands which will work across many different versions of UNIX with discrepancies in Example/Notes.

CommandDescriptionExamplesNotes
asASsembleras input.s
ccC Compilercc input.cCreates an executable named a.out by default
cdChange working Directorycd tmpon Version 6 this command is chdir
dfDisk FreedfDisplays summary of free disk space. May take time to complete on some systems
edEDitored filenameED is the standard (line) text editor
echoEchoecho ${HOME}Prints the value assigned to the variable HOME
envENVironment settingsenvDisplays the shell environment settings (see set))
ldLink Loaderld inputfile
lsLiSt directoryls -lprovides a long LiSting
manMANualman manOn some systems, displays online manual pages. See also apropos
psProcess Statusps -a or ps -lprints All or Long Process Status
pwdPresent Working DirectorypwdPrints the working directory
setSET or display shell parameterssetSets or displays the shell environment settings (see env)
viVIsual editorvi filenamevi is a screen editor

On some systems typing games will print a list of games.

directorydescription
/This is the top level or root directory
/bincommon user programs are here (type echo ${PATH} to see more
/etcThis is the system directory
/libSystem library files
/usr“Unix System Resources” or “USeR” directory, depending on who you ask - contains additional binaries, libraries, manpages
/usr/games or /usr/local/gamesUsually contains the standard UNIX games
unix_survival.1586373086.txt.gz · Last modified: 2020/04/08 19:11 by joshd