On Thu, 6 Nov 2003, Fajar Priyanto wrote:
> Can ls list all directories and their subdirectories, something like DOS'
> dir/s command?
Of course it can; option "-R" is your friend. (Better yet, try "man ls"
or "ls --help" to get detailed help.)
Ad astra,
--
Dipl.-Inf. Markus Ueberall
> Hello all,
> Can ls list all directories and their subdirectories, something like DOS'
> dir/s command?
# ls -R
or
# ls -lhR
for viewing sizes of files/dirs
"R" means "recursive" so it lists all dirs and their subdirs
"h" - human-readable sizes, e.g. 10K, 1.5M
"l" - full list (permissio
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thursday 06 November 2003 03:53 pm, Artemio wrote:
> # ls -lhR
> for viewing sizes of files/dirs
>
> "R" means "recursive" so it lists all dirs and their subdirs
> "h" - human-readable sizes, e.g. 10K, 1.5M
> "l" - full list (permissions, sizes etc.
Re: [expert] ls all dir and subdir?
>
>
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>On Thursday 06 November 2003 03:53 pm, Artemio wrote:
>> # ls -lhR
>> for viewing sizes of files/dirs
>>
>> "R" means "recursive" so it lists all dir
On Thursday 06 November 2003 05:56 am, Fajar Priyanto wrote:
> On Thursday 06 November 2003 03:53 pm, Artemio wrote:
> > # ls -lhR
> > for viewing sizes of files/dirs
> >
> > "R" means "recursive" so it lists all dirs and their subdirs
> > "h" - human-readable sizes, e.g. 10K, 1.5M
> > "l" - full l
On Thu, 6 Nov 2003, Fajar Priyanto wrote:
> Actually, I'm trying to see how the file structure of my server is. Or is
> there any better way to know it?
Install the "tree" RPM (which provides the tree console app), it's ideal
for this; it's recursive by default. For a directories-only listing: