![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 05:12 PM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 03:06 PM |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | Linux | 5 | 07-30-2007 05:26 AM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | HP-UX | 1 | 10-16-2006 01:16 PM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | Shell Programming and Scripting | 0 | 09-19-2006 06:44 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi there,
I am using command "ls -Rl" so it is giving me complete listing of directories including subdirectories, can we modify the above ls command so that we can get the complete path alog with the directory name and subdirectory name. thanks in advance Manvar |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
It depends on your distro, Fedora has this, example :
If I invoke "ls -lR" at my home folder I will see : Quote:
For this issue, you should be able to find the answer in "man ls" once again, it depends on the distro. |
|
#3
|
|||
|
|||
|
This should do the trick: ls -Rl `pwd`
|
|
#4
|
||||
|
||||
|
With zsh:
Code:
print -l **/* Code:
print -l **/*(D) |
|
#5
|
||||
|
||||
|
There isn't really a need to run a command here. Most shells set the $PWD variable. You can just use that:
Code:
ls -lR $PWD |
||||
| Google The UNIX and Linux Forums |