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 |
| catman | Creates keyword indexes |
| ls, ls -l, ls -la | Directory listing |
| rm | Remove file |
| cd | Change directory |
| pwd | Present working directory |
| mkdir | Make directory |
| rmdir | Remove directory |
| chmod | Change mode (file permissions) |
| ps -ef | Process list |
| ps -ef | grep "word" | Filter process list |
| find <dir> -name "name" -print | Find file |
| kill -<level> <PID> | End a unix process |
| passwd | Change password |
| xterm | Terminal session |
| admintool | GUI to Admin functions |
| <command>& | Send process to background when starting |
| CTRL+Z | Interrupt foreground process |
| bg | Send interrupted process to background |
| fg | Bring background process to foreground |
| jobs | Check for running jobs |
| CTRL+C | Stop foreground process |
| CTRL+D | End of File / Exit Shell |
| exit | Exit the current shell |
| sh / ksh / csh | Bourne 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 appliedboot -i— re-initialises the /dev directory with new device files for recently added devicesm64config -depth 24 -res 1152 now— set the screen resolution to 1152 and 24 bits depth of colour (no palette sharing)