Written by Chris Gregg
All Videos
Logging into the myth
cluster computers
File System
- The file system is a tree
- The
.backup
directory - The working directory and
pwd
- What is the difference between an absolute and a relative path?
- The
cd
command (change directory) - The
cat
command (print out a file to the screen) - The
ls
command (list a directory's files) - (Fancy)
pushd
andpopd
(to easily move back and forth between folders) - (Fancy) "symlinks" (create a link to a file in a different directory)
Useful Commands
man
(manual pages for unix commands)cp
andmv
(copy and move files and directories)rm
(permanently remove files and directories)grep
(search files for text)find
(find a file in a directory system)diff
(show the differences between two text files)wc
(count the words in a file)tar
(unarchive a .tgz or .tar.gz file)
Shell / Productivity
history
(shows your last commands)- Up/Down arrow keys (redo a previous command)
- Tab-completion (saves typing by deterministically completing a command for you)
- Using
!
andctrl-R
(goes back through your history to get previous commands) - Using
<
and>
and|
(called "redirecting" and "piping")
Development / Writing Programs
gcc
(how to compile c programs)make
(compiles your program using a set of commands)valgrind
(runs your program and finds memory leaks and memory errors)gdb
(the command-line debugger)