Re: [expert] ls all dir and subdir?
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 Johann Wolfgang Goethe-Universität Tel: (069)798-28361 Fax: -23340Institut für Informatik / Telematik Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls all dir and subdir?
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 (permissions, sizes etc.) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
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 dirs and their subdirs h - human-readable sizes, e.g. 10K, 1.5M l - full list (permissions, sizes etc.) Thanks guys, Actually, I'm trying to see how the file structure of my server is. Or is there any better way to know it? - -- Fajar http://linux.arinet.org Linux mdk91.sistek.kom 2.4.21-0.13mdk GNU/Linux 17:55:10 up 10:26, 10 users, load average: 1.00, 0.70, 0.66 Quote of the day: Win98 errors 019-999: Reserved for future use; presently used only to occupy 49.3 MB diskspace. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/qijYMai9kCFqACoRAiVxAKC6/pVR+6W51LYOSwGtJ1p0X0Yc6ACgqOpw KbZvLxiEmltuOolfIDl4nSQ= =NTlq -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [expert] ls all dir and subdir?
du will list directories (man du for more info) mc will give you Midnight Commander - a menu driven file management tool HTH -Original Message- From: Fajar Priyanto [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:56 AM To: [EMAIL PROTECTED] Subject: 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 dirs and their subdirs h - human-readable sizes, e.g. 10K, 1.5M l - full list (permissions, sizes etc.) Thanks guys, Actually, I'm trying to see how the file structure of my server is. Or is there any better way to know it? - -- __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls all dir and subdir?
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 list (permissions, sizes etc.) Thanks guys, Actually, I'm trying to see how the file structure of my server is. Or is there any better way to know it? you might want to look into the tree package, I think it is what you want. It may not be installed by default, so you might have to 'urpmi tree' -- /g Outside of a dog, a man's best friend is a book, inside a dog it's too dark to read -Groucho Marx Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls all dir and subdir?
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: tree -d [dir] To include hidden files, as well as regular files: tree -A [dir] HTH! -- Bill Mullen [EMAIL PROTECTED] MA, USA RLU #270075 MDK 8.1 9.0 Microsoft has a new version out, Windows XP, which according to every- body is the 'most reliable Windows ever.' To me, this is like saying that asparagus is 'the most articulate vegetable ever.' -- Dave Barry Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls
I know this may not be an immediate answer, but has anybody actually googled this thing? http://www.google.com/search?q=intext%3A%22stale+NFS+file+handle%22sourceid=mozilla-searchstart=0start=0 (link may be wrapped) Check it out - it does not look like being related to NFS all the time ... among other things ... Stef On Monday 21 July 2003 09:28 am, charlie wrote: stale NFS file handle Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls
On Tue, 2003-07-22 at 04:41, stefmit wrote: I know this may not be an immediate answer, but has anybody actually googled this thing? http://www.google.com/search?q=intext%3A%22stale+NFS+file+handle%22sourceid=mozilla-searchstart=0start=0 (link may be wrapped) Check it out - it does not look like being related to NFS all the time ... among other things ... Stef I did... that's where I was seeing NFS AFS etc time after time. http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=ls%3A+.%3A+stale+NFS+file+handlebtnG=Google+Search is my link. James Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls
On Mon, 21 Jul 2003 02:46 pm, Todd Lyons had this to contribute :- ls: .: stale NFS file handle You're in a directory on the cdrom, for example in /mnt/cdrom. If you give it the path instead of the (implied) . then it will work properly. Thanks James, Michael and Todd, I will be more observant when it happens again, and have archived your suggestions. Thank you, Charlie. -- Deep in their roots, All flowers keep the light. Theodore Roethke This email is guaranteed to be wholly Linux Mandrake 9.1, Kmail v1.5 and OpenOffice.org1.1Beta Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls
On Mon, 21 Jul 2003 05:58 am, James Sparenberg had this to contribute :- On Sun, 2003-07-20 at 00:48, charlie wrote: On Sun, 20 Jul 2003 02:38 pm, James Sparenberg had this to contribute :- On Sat, 2003-07-19 at 16:03, charlie wrote: Using ls in konsole or XTerm, I sometimes get the following message :- ls: .: stale NFS file handle Can someone tell me what this means? Charlie AFAIK it's actually saying that an NFS mount is trying to find a file that has been moved or removed on the distant end and no longer viable. If you don't use NFS removing the rpms for it would probably prevent it from re-occuring. If you do, sounds like one of your mounts is getting changed by another user and affecting you. I did notice that around 2.4.19 they were working on this in the kernel... Here is a link to some of that info. http://www.mail-archive.com/[EMAIL PROTECTED]/msg02521.html James Thanks James, but NFS is not installed and just in case I checked the system, but no NFS rpm's either. H every time I've seen this it's been related to NFS ... AFS or some similar product. What kernel do you run? James 2.4.21-0.13mdk It doesn't happen often, and has only happened in the last couple of weeks, 3 times. It's not a real problem, just curiosity. But that is a point, I have a couple of kernels in my home directory, and a 30 second delay in boot to select whichever I want to boot into. But if I'm making a cup of coffee while the machine boots, it just goes straight into the the one above. So I will have to take note of which kernel is being used when it happens. I was earlier on tonight building a second kernel on a Slackware partition and know that I disabled NFS, but if I was tired building a new kernel, I might have left it in. Now I know what to look for, I will do so. I checked one already, it does not have NFS support of any kind enabled. Or any other than the DOS, ext2 and ext3 file systems. All the others disabled. Thanks, Charlie. -- Andrea: Unhappy the land that has no heroes. Galileo: No, unhappy the land that _needs heroes. -- Bertolt Brecht, Life of Galileo This email is guaranteed to be wholly Linux Mandrake 9.1, Kmail v1.5 and OpenOffice.org1.1Beta Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls
On Sun, 20 Jul 2003 02:38 pm, James Sparenberg had this to contribute :- On Sat, 2003-07-19 at 16:03, charlie wrote: Using ls in konsole or XTerm, I sometimes get the following message :- ls: .: stale NFS file handle Can someone tell me what this means? Charlie AFAIK it's actually saying that an NFS mount is trying to find a file that has been moved or removed on the distant end and no longer viable. If you don't use NFS removing the rpms for it would probably prevent it from re-occuring. If you do, sounds like one of your mounts is getting changed by another user and affecting you. I did notice that around 2.4.19 they were working on this in the kernel... Here is a link to some of that info. http://www.mail-archive.com/[EMAIL PROTECTED]/msg02521.html James Thanks James, but NFS is not installed and just in case I checked the system, but no NFS rpm's either. -- Andrea: Unhappy the land that has no heroes. Galileo: No, unhappy the land that _needs heroes. -- Bertolt Brecht, Life of Galileo This email is guaranteed to be wholly Linux Mandrake 9.1, Kmail v1.5 and OpenOffice.org1.1Beta Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls
On Sun, 2003-07-20 at 00:48, charlie wrote: On Sun, 20 Jul 2003 02:38 pm, James Sparenberg had this to contribute :- On Sat, 2003-07-19 at 16:03, charlie wrote: Using ls in konsole or XTerm, I sometimes get the following message :- ls: .: stale NFS file handle Can someone tell me what this means? Charlie AFAIK it's actually saying that an NFS mount is trying to find a file that has been moved or removed on the distant end and no longer viable. If you don't use NFS removing the rpms for it would probably prevent it from re-occuring. If you do, sounds like one of your mounts is getting changed by another user and affecting you. I did notice that around 2.4.19 they were working on this in the kernel... Here is a link to some of that info. http://www.mail-archive.com/[EMAIL PROTECTED]/msg02521.html James Thanks James, but NFS is not installed and just in case I checked the system, but no NFS rpm's either. H every time I've seen this it's been related to NFS ... AFS or some similar product. What kernel do you run? James Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls
The . tell you the current directory. The stale NFS handle sys that the directory (nfs mounted) is no longer valid. If the file server you are mounting the directory from has a faulty network card this would cause this to happen every now and then. I have found that onboard ethernet cards are not very good (a $10.00 card is better than the onboard). If you do a df you will also see the file system reported as stale there as well. To correct a Stale NFS handle in Linux will require a reboot. Under Solaris an umount -f filesystem will remove the faulty NFS mount, I have found this does not work in Linux. Mike On Sun, 2003-07-20 at 12:58, James Sparenberg wrote: On Sun, 2003-07-20 at 00:48, charlie wrote: On Sun, 20 Jul 2003 02:38 pm, James Sparenberg had this to contribute :- On Sat, 2003-07-19 at 16:03, charlie wrote: Using ls in konsole or XTerm, I sometimes get the following message :- ls: .: stale NFS file handle Can someone tell me what this means? Charlie AFAIK it's actually saying that an NFS mount is trying to find a file that has been moved or removed on the distant end and no longer viable. If you don't use NFS removing the rpms for it would probably prevent it from re-occuring. If you do, sounds like one of your mounts is getting changed by another user and affecting you. I did notice that around 2.4.19 they were working on this in the kernel... Here is a link to some of that info. http://www.mail-archive.com/[EMAIL PROTECTED]/msg02521.html James Thanks James, but NFS is not installed and just in case I checked the system, but no NFS rpm's either. H every time I've seen this it's been related to NFS ... AFS or some similar product. What kernel do you run? James Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com -- Michael Noble mailto: [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 charlie wanted us to know: ls: .: stale NFS file handle Can someone tell me what this means? AFAIK it's actually saying that an NFS mount is trying to find a file that has been moved or removed on the distant end and no longer viable. Thanks James, but NFS is not installed and just in case I checked the system, but no NFS rpm's either. You're in a directory on the cdrom, for example in /mnt/cdrom. If you give it the path instead of the (implied) . then it will work properly. cd /mnt/cdrom ls (results in error message) cd /root ls /mnt/cdrom (will work) - -- Blue skies... Todd | Get a bigger hammer! | Normal? Normal is a setting on | | http://www.mrball.net | my dryer. | | http://faq.mrball.net | BayCon 2001 http://www.baycon.org | Linux kernel 2.4.19-24mdk 4 users, load average: 0.05, 0.03, 0.00 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) Comment: http://www.mrball.net/todd.asc iD8DBQE/G3AUIBT1264ScBURAnsWAKCorSdtrXkbHgMZp82A8GmI/WijggCgu2Ix qvC6E/QKNvdH2vzAsKkvMjs= =/95C -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] ls
On Sat, 2003-07-19 at 16:03, charlie wrote: Using ls in konsole or XTerm, I sometimes get the following message :- ls: .: stale NFS file handle Can someone tell me what this means? Charlie AFAIK it's actually saying that an NFS mount is trying to find a file that has been moved or removed on the distant end and no longer viable. If you don't use NFS removing the rpms for it would probably prevent it from re-occuring. If you do, sounds like one of your mounts is getting changed by another user and affecting you. I did notice that around 2.4.19 they were working on this in the kernel... Here is a link to some of that info. http://www.mail-archive.com/[EMAIL PROTECTED]/msg02521.html James Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com