Keith Sinclair

← Information Technology

Unix Notes

Don't forget the Environment: . ~/.profile or . /etc/profile or source .cshrc

Commands

Command Description
man <command>Manual pages
man -k <keyword>Search manual pages by keyword
catmanCreates keyword indexes
ls, ls -l, ls -laDirectory listing
rmRemove file
cdChange directory
pwdPresent working directory
mkdirMake directory
rmdirRemove directory
chmodChange mode (file permissions)
ps -efProcess list
ps -ef | grep "word"Filter process list
find <dir> -name "name" -printFind file
kill -<level> <PID>End a unix process
passwdChange password
xtermTerminal session
admintoolGUI to Admin functions
<command>&Send process to background when starting
CTRL+ZInterrupt foreground process
bgSend interrupted process to background
fgBring background process to foreground
jobsCheck for running jobs
CTRL+CStop foreground process
CTRL+DEnd of File / Exit Shell
exitExit the current shell
sh / ksh / cshBourne Shell / Korn Shell / C Shell

ifconfig is used to configure interfaces on a Unix host. This can also be used to make virtual interfaces like ifconfig en0 alias ...

Important Files

  • /etc/profile
  • ~/.profile
  • /etc/passwd
  • /etc/inetd.conf
  • /etc/hosts
  • /etc/services

Misc Notes

tcp_relay is a cool little proxy program which allows you to cross map IP address and port numbers. A simple form of Network Address Translation.

Solaris Commands

  • showrev -p — lists patches etc which have been applied
  • boot -i — re-initialises the /dev directory with new device files for recently added devices
  • m64config -depth 24 -res 1152 now — set the screen resolution to 1152 and 24 bits depth of colour (no palette sharing)