Elementary Filesystem Navigation: Man Bash Indeed
Well, it only took me about an hour to work out that "cd .." moves you up
a directory, to the parent directory, when you're fishing around the
filesystem on the terminal using bash, eg from the directory
"/mimus/whining" to its parent directory "/mimus".
The man page for bash didn't seem to have that information, at least in
its explanation of the command "cd" . . . .
BTW, "cd /" takes you to the root directory, the Mother of All
Directories, and "cd -" takes you to the last directory you were in, and
"cd" by itself takes you back to your home (user) directory, eg
"/usr/home/mimus" (a nice bail-out maneuver).
Also, "dir" doesn't list system and hidden directories prefaced with a
".", although "dir -a" does, and even "dir -a" doesn't tell you what
an entry is, file or directory or what; you need to use "dir -p" or "dir
-a -p", when directories will end in "/"s.
Finally, "find -name <filename>" will find all the directories and
files in or below your home directory containing "<filename>" in their
names; you can search the whole filesystem this way using "sudo find
/ -name <filename>", when it will ask for the root password (probably your
own, if you're using Ubuntu).
Incidentally, if you blow that last one, you can easily end up dumping
every filename in the filesystem to yer terminal, which will take awhile,
and the only way I know of to stop that is to exit the terminal by
clicking on its upper right hand "x" button (you'd think there'd be a key
to do that, but I have proven that "Esc" doesn't work, anyway . . . ).
Another five years and I'll have this stuff down pat.
--
..sigzip:*
|