Workshop 0. Basic Linux and Command Line Usage: Online Materials¶
Introduction¶
Runtime: ~3 min
Basic command line usage¶
Basic file operations¶
Commands for working with directories:
mkdir- make directoryrm- remove file or directorymv- rename or change location of (move) file or directory
Runtime: ~9 min
Two videos covering commands for working with files:
head- print first lines of a filetail- print last lines of a filefind- search for a file in a and below a directoryCtl-C- interrupt a running command
Runtime: ~9 min
NB: At one point the speaker says the find command is not very useful.
I disagree!!
Two more useful commands:
less- print a file to the screen page by pagenano- very basic command line text editor
Runtime: ~10 min
I/O redirection and commands that commonly use it:
>,>>- redirect standard output (stdout) and replace/append to file2>,2>>- redirect standard error (stderr) and replace/append to file&>,&>>- redirect both stdout and stderr and replace/append to file>- standard input redirect from filegrep- search for text patterns in file/output|- pipe, forward stdout from one program to another programcat- print file(s) to stdoutps- print out information on running processes
Runtime: ~20 min
Globbing
*- the glob character
Runtime: ~6 min