|
Author |
Message |
|
|
Posted : Fri, 23 January 2009 02:40:20
Subject :
linux conmmands issue
hai all
i have some doubts in linux commands
can any one tell me how to make a directory inside a directory using a single command(like a tree)
eg: a/b/c/d/
where a, b,c ..are directories..
and how to list the files and folders without the color schemes?
plz reply soon
regards
faheem
|
|
|
|
Rubberman
|
Posted : Fri, 23 January 2009 03:39:26
Subject :
linux conmmands issue
1. Making directories with subdirectories (note, the $ is the prompt. DON'T TYPE IT IN!):
$ mkdir a a/b a/b/c
This will create directory a, directory b under a, and directory c under a/b.
2. Listing files without color schemes.
This happens because the 'ls' command is an alias for the real 'ls' command. Do this:
$ unalias ls
Now, the 'ls' command will not display the colors. I agree, it is sometimes uninformative, or distracting. However, it does help to find soft links that have lost their target (blinking red). I usually prefer the command: ls -aFC
which will show directories with a terminating / and hidden files that start with a dot.
|
|
Binary Snake
|
Posted : Fri, 23 January 2009 09:00:09
Subject :
Re: linux conmmands issue
you can create directories inside directories using "mkdir -p /a/b/c/d", this will try to create the d directory, and if it doesn't find its parent directories it will create them (i.e if you don't already have a/b/c it will create them for you.).
[Modified by: Binary Snake on January 23, 2009 10:01 AM]
|
|
freemen
|
Posted : Fri, 23 January 2009 10:22:20
Subject :
linux conmmands issue
Thanks a lot to all
|
|
Rubberman
|
Posted : Fri, 23 January 2009 21:01:22
Subject :
linux conmmands issue
Indeed. I learned all the command-line stuff way back in Unix's early middle-ages (my first Unix box was back in the early 80's), and as I recall I don't think there was a -p option to mkdir. Maybe I should update my knowledge base? :-)
|
|
mikjp
|
Posted : Sat, 24 January 2009 08:56:15
Subject :
linux conmmands issue
The Linux Documentation Project is a great source of information for Newbies. See for example
http://tldp.org/LDP/GNU-Linux-Tools-Summary/html/GNU-Linux-Tools-Summary.html
Greetings,
Mikko
http://lightlinux.blogspot.com
|