Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > Elementary Filesystem Navigation: Man Bash Indeed
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 16th May 10:50
mimus
External User
 
Posts: 1
Default 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:*
  Reply With Quote


  sponsored links


2 16th May 10:50
clay
External User
 
Posts: 1
Default Elementary Filesystem Navigation: Man Bash Indeed


try: apropos cd


try:
ls
instead of dir. -a works with it too.
(I dir'd too when I first delved into the Linux world 4 months ago.
Learned a bunch since then...)

Ctrl+c will break (stop) the command.

(don't shoot me, I'm just learnin'
  Reply With Quote


  sponsored links


3 16th May 14:13
mimus
External User
 
Posts: 1
Default Elementary Filesystem Navigation: Man Bash Indeed


You're about two months ahead of me.

Have you cried at any point?

--
..sigzip:*
  Reply With Quote
4 16th May 17:18
clay
External User
 
Posts: 1
Default Elementary Filesystem Navigation: Man Bash Indeed


lol!
No, but I could'a shot my monitor a couple times. *g*
About a month into building a PVR box and trying to make MythTV work (a
20 minute process had I chose to use WinTV or one of the other 'doz
derivatives...) 6.06 came out so I found myself flatlining it and
starting over.
Sure, I could have just updated but so much was already screwy, starting
over seemed to be the safest alternative.
Then I find I'm not using the best kernel, start over again.
Then I find I've jacked my partitioning, leaving 220 GB unavailable...
Flatline and start over.
Then 6.06 gets an update to it's kernel but by know I know how to fix
what it breaks and bust my buttons as I quickly get MythTV going again.

I could have rented a recorder box from the cable company for ~$12.00 a
month. Heck, in about 7 years my Dapper PVR will have paid for itself!

It's been running for about a month now, without attention. I'm afraid
I've forgot half of what I learned building it. I think I'll install it
on another beater I have laying around just to keep sharp on Ubuntu.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666