Linux.com

Author Message
Joined: Jan 06, 2009
Posts: 16
Other Topics
Posted Jan 23, 2009 at 2:40:20 AM
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
Back to top Profile Email Website
Rubberman
Joined Jul 30, 2007
Posts: 944
Location:40 miles west of Chicago

Other Topics
Posted: Jan 23, 2009 3:39:26 AM
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.

Sometimes real fast is almost as good as real time. Remember, Google is your friend!

Back to top Profile Email Website AOL Instant Messenger
Binary Snake
Joined Jan 11, 2009
Posts: 197

Other Topics
Posted: Jan 23, 2009 9:00:09 AM
Subject: 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]
Back to top Profile Email Website MSN
freemen
Joined Jan 06, 2009
Posts: 16

Other Topics
Posted: Jan 23, 2009 10:22:20 AM
Subject: linux conmmands issue
Thanks a lot to all
Back to top Profile Email Website
Rubberman
Joined Jul 30, 2007
Posts: 944
Location:40 miles west of Chicago

Other Topics
Posted: Jan 23, 2009 9:01:22 PM
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? :-)

Sometimes real fast is almost as good as real time. Remember, Google is your friend!

Back to top Profile Email Website AOL Instant Messenger
mikjp
Joined Jan 15, 2009
Posts: 21

Other Topics
Posted: Jan 24, 2009 8:56:15 AM
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
Back to top Profile Email Website
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya