Learning machine learning? Try my machine learning flashcards or Machine Learning with Python Cookbook.
Changing Directories
We can navigate Linux systems in the command line using the cd
command.
View Current Working Directory
pwd
/home/chris
List Subdirectories
Note -d */
is a hacky means to list only directories (not files) in a directory.
ls -d */
anaconda3/ automatic_backups/ Desktop/ Documents/ Downloads/ Music/ nvvp_workspace/ Pictures/ Public/ Templates/ tensorflow/ Videos/
Change To A Directory Using An Absolute Path
cd /home/chris/anaconda3
View Current Working Directory
pwd
/home/chris/anaconda3
Go Up One Directory
cd ..
View Current Working Directory
pwd
/home/chris
Go Up To A Subdirectory
cd anaconda3
View Current Working Directory
pwd
/home/chris/anaconda3
Note: Linux systems often can autocomplete commands. We can take advantage of this by typing cd
then the first letter of the subdirectory and pressing tab
. Linux should autocomplete the name - saving us some time.