Recitation 1e: Summary¶
You are now empowered¶
With just a handful of commands, you are now all ready to manage files and navigate your way around the command line! Once you get the hang of it, you will find the command line very efficient and often preferable to using Finder (for Mac users).
Command line cheat sheet¶
As a useful reference, here are all the commands we covered in this recitation, where the text in brackets represents the file or directory you are interested in manipulating:
Command |
Description |
---|---|
|
print working directory |
|
list contents of the current directory |
|
navigate to your home directory |
|
navigate to the specified directory |
|
navigate “up” one directory, to the parent directory |
|
make a new directory |
|
remove an empty directory |
|
copy a file to a directory |
|
copy a directory to a another directory |
|
move a file to a directory |
|
rename a file |
|
move a directory to another directory |
|
remove a file |
|
remove a directory and all contents (use with caution!) |
|
display file to screen (best for small files) |
|
display first \(n\) lines of a file |
|
display last \(n\) lines of a file |
Computing environment¶
[1]:
%load_ext watermark
%watermark -v -p jupyterlab
CPython 3.7.4
IPython 7.8.0
jupyterlab 1.1.4
Copyright note: In addition to the copyright shown below, this recitation was developed based on materials from Axel Müller.