|
|
|
|
|
by more_corn
796 days ago
|
|
Manipulating text files is probably not enough. This is what I usually teach: 1) learn the parts of the command including long and short versions of options(command, options arguments)
2) learn how to execute commands and troubleshoot (which, ls -al, chmod, etc)
3) learn to chain commands with the pipe (grep, sort, awk, sed, wc and grep -c, learn the common misuse of cat since most commands you’re passing to take a filename argument)
4) learn about history, reverse history search, history shortcuts like !! And !:1, tab completion The way I do this is to have students set up a raspberry pi and ssh into it. There’s a lot of fiddling and troubleshooting involved and it builds good practice. You should also probably teach command line tool access in vi for processing huge files visually e.g :%! grep |
|