Jeroen Janssens has recently shared a neat little hack that allows you to bookmark often-used directory paths in the terminal and quickly jump to any of the bookmarked directories.
As useful as navigating through directories from the command line is, rarely anything has become as frustrating as repeating over and over "cd ls cd ls cd ls ..." If you are not a hundred percent sure of the name of the directory you want to go to next, you have to use ls.
Is there any way to jump back to the previous working directory after doing a cd to a different directory?
My use-case is that I'm traversing a directory structure for a Java project, and I'm expecting that the current directory has only one sub-directory. So, I type cd and hit Tab and Enter rather quickly.
Linux Usr System Directory – Ls (List Directory) Command Examples – Quick Tips
By Clyde E. Boom
The Linux usr Directory
The usr directory, below the /, typically contains application software programs and utilities that can be shared across a network.
Setup : An NFS mounted volume which has a deep directory structure with lots of little files. NFS share lives on a NAS.
by deep, i mean many little directories and sub-directories with lots of little files.
Problem : If I want to find the disk space used by this directory, I run the du -shc command, which takes ages !