Info
This page will serve as a collected reference of the commands introduced in the lecture videos and slides. It is not intended to replace the man pages or watching lectures or reading over the slides, but will hopefully help you navigate the commands we have shared.
Warning
This is the first time we are making this page so we make no guarantees about the completeness of this guide.
Linux Commands¶
Basic Shell Commands¶
Log in to a remote Linux server (e.g., attu
)
Print current working directory
Change working directory
List files in working directory
Bring up manual for a command
Log out of shell
System Commands¶
Clears all output from console
Output the system date
Output a text calendar
Print information about the current system
Directory Commands¶
List files in working directory
Print current working directory
Change working directory
Make a new directory
Remove the given directory (must be empty)
File Commands¶
Copy a file
Move a file (also used to rename files)
Remove the given file
Create empty file, or change time-modified
Unix File System¶
Relative Directories¶
References the working directory
References the parent of working directory
username’s home directory
Your desktop
Unix File System¶
Root directory that contains all directories
Applications/programs (i.e. binaries)
Hardware devices
Configuration files
Contains user’s home directories
Running programs (processes)
Temporary files
Universal system resources
Text Editors¶
Very simple editor
More advanced text-editor
More advanced text-editor
Vim Basics¶
Write (save) the current file
Write (save) the current file and exit
Quit, ignoring all changes
Go into insert mode
Go back to normal mode
Move cursor left, down, up, right
Undo last change
Delete character
Emacs Basics¶
C = control key, M = alt/meta key
Read a file into emacs
Save a file to disk
Exit emacs
Search forward
Search backwards
Scroll to next screen
Scroll to previous screen
Undo