Unix commands as they'd be typed into a prompt, read the lessons for clarification or instructions. Anything in //'s is a description of what should be there rather than a real life example of what needs to be there. Everything after the ;; are comments on what it does.
- ls ;;list directories and files ls -a ;;list all, even normally hidden files starting with . ls -G ;;list with colors ls -l ;;list long version cd .. ;;change directory one directory back cd ~ ;;change directory to home directory cd public_html ;;change from home directory to public_html directory pwd ;;show current working directory mkdir exampledirectory ;;make directory named exampledirectory rm -d exampledirectory ;;remove directory named exampledirectory man man ;;read the manual page about manual pages apropos chmod ;;use the apropos command to find out about the chmod command ps -aux|grep /username/ ;;show processes (aka jobs) sorted to match a specific /username/ kill -9 /processidnumber/ ;;really terminate a process indicated by the number /processidnumber/ alias ls ls -GF ;;When added to the .cshrc file makes your ls command into an ls -GF command alias help man ;;When added to the .cshrc file makes help a synomyn for man source .cshrc ;;reload the .cshrc file, useful if you've made changes to it and want to see them help man ;;If the previous line is in your .cshrc file, then you'll read the manual page about manual pico ;;An easy to use text editor pine ;;An easy to use email reader date ;;Show the date motd ;;Show the message of the day less /filename/ ;;View /filename/ with the less viewer, a way to look at files more /filename/ ;;Same as less only can't scroll up and down with arrow keys etc, typing q quits both of them pico /filename/ ;;A basic text editor, easy to use cp /filenametocopy/ /filenametobecopiedto/ ;;copy command cp examplefile ~/public_html/examplefile.save ;;copy from current directory into the public_html directory rm examplefile ;;Remove file named examplefile chmod -R 755 /directoryname/;;Change permissons to publicly readable and executeable for /directoryname/ and its contents clear ;;Clears the screen who ;;Shows current users of the system finger /username/ ;;Shows finger information about /username/ as well as /username/'s .plan file finger /name/ ;;Shows finger infromation about /name/ finger kevin ;;Shows accounts with the name kevin in them w ;;Like who only different ping www.google.com ;;Shows if www.google.com is up, and any lag time between you and it, exit with a control-z lynx www.google.com ;;Lynx is a text based web browser which pico ;;Shows the path of directories to the pico program setenv EDITOR /pathofdirstopico/;;When added to .login file makes pico your default editor
ssh chrisr@tentacle.net ;;Use the Secure Shell program to login the user chrisr to the host tentacle.net
rlogin /user@hostname.com/ ;;Remote login, like ssh but unsecure
telnet /user@hostname.com/ ;;Same as above head * ;;Shows the beginning of all files in your current working directory tail * ;;Shows the end of all files in your current working directory head *|less ;;Makes the output from the head program get viewed through less tty ;;Show which terminal type you're on write /username/ tty/xx/ ;;Write a message to /username/'s terminal of type /xx/ irc ;;Internet Relay Chat, a decent server is irc.dal.net
---
Other stuff to know:
- * is a wildcard character that allows it to be any file name or directory path, an example of usage would be cd pub* which would change your directory to the directory named public_html, or public_hair, or pubblah, or pubetc, you get the idea. less * will list everything in your directory with less. rm * will remove every file in your current directory, use with knowledge and caution.
- Tab completion is when you hit tab to complete something you've partially typed, for example cd pub/youhittabratherthan*lic_html/ will cause unix to make cd pub into cd public_html assuming that you've typed enough to make it unique. cd p/hittab/ will do the same thing most likely, unless you've got another directory that starts with the letter p.
- Pressing the up arrow key will scroll up through your history of commands, and the down arrow will scroll down through it.