Re: Mount My Creation [ls -c, -t -u etc]
- Original Message - [snip] > On Sat, 21 Jun 2003, Joshua Oreman wrote: > What "ls" command can I do IN THE CURRENT WORKING DIRECTORY to just see the > "myfiles/" listing? That is, if I type "ls -alF myfiles" (or myfiles/), > why does the output delve *into* this directory and list its contents? > > The only work around is "ls -alF | grep myfiles" it seems! > no, it isn't, try the -d switch: dionysus: {1022} mkdir testdir dionysus: {1023} touch testdir/file1 dionysus: {1024} touch testdir/file2 dionysus: {1025} touch testdir/file3 dionysus: {1026} ls -laFd testdir drwxr-xr-x 2 root users 512 Jun 22 20:14 testdir/ dionysus: {1027} ls -laF testdir total 4 drwxr-xr-x 2 root users 512 Jun 22 20:14 ./ drwxr-xr-x 3 root users 512 Jun 22 20:14 ../ -rw-r--r-- 1 root users0 Jun 22 20:14 file1 -rw-r--r-- 1 root users0 Jun 22 20:14 file2 -rw-r--r-- 1 root users0 Jun 22 20:14 file3 dionysus: {1028} Gr, Axel Scheepers ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount My Creation [ls -c, -t -u etc]
dionysus: {1030} man ls -d Directories are listed as plain files (not searched recursively) and symbolic links in the argument list are not indirected through. ... :-) gr, Axel Scheepers ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount My Creation [ls -c, -t -u etc]
On Sun, 22 Jun 2003, Peter Leftwich wrote: > > [1] If I'm in a directory, and do "ls -alF" and see for example: > > drwx-- 2 pete users 512 Jun 22 13:41 myfiles/ > > What "ls" command can I do IN THE CURRENT WORKING DIRECTORY to just see the > "myfiles/" listing? That is, if I type "ls -alF myfiles" (or myfiles/), > why does the output delve *into* this directory and list its contents? > > The only work around is "ls -alF | grep myfiles" it seems! If I understand you correctly and you want to list just the name of a a directory use "ls -d dirname" > [2] What is the switch to see the full date and time output, instead of > this information being truncated to "Dec 3 2002" instead of "Dec 3 2002 > 15:16:01" for example? if you want full date and time use ls -lT Cheers, Viktor ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount My Creation [ls -c, -t -u etc]
On Sun, 22 Jun 2003, Axel Scheepers wrote: > prompt$ man ls > -d Directories are listed as plain files (not searched recursively) > and symbolic links in the argument list are not indirected through. > :-) > gr, > Axel Scheepers Awesome! The post before had just said "don't use -R" Thanks Axel S. -- Peter Leftwich President & Founder, Video2Video Services Box 13692, La Jolla, CA, 92039 USA http://Www.Video2Video.Com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount My Creation [ls -c, -t -u etc]
On Sat, 21 Jun 2003, Joshua Oreman wrote: > > On Thu, 19 Jun 2003, Patrick O'Reilly wrote: > > > And see 'man ls' and the switches -c, -t and -u. > > I was aware of and often use the -t switch (in a tcsh alias), but these > > have to do with sorting. What if I wanted to see (maybe not as output from > > a single command but a few) the creation date, last modification date, and > > last access time for a directory? What are the command lines I'd use (to > > include "." files and NOT recursively list within a/the directory)? > Include . files - ls -a > Don't recurse - DON'T include -R > Inode change time - ls -lc > Last modified - ls -l These last two are nearly always identical, ugh. > Last accessed - ls -lu > Note that there is no "creation time" - it's actually just the inode change > time. So it will change when you make a new link to the file, for example, > or when you set any of the file's times other than last modified, with > `touch'. > -- Josh The -u one is the only one for which I see new output (I've never thought was there!) But now I can't figure out two things: [1] If I'm in a directory, and do "ls -alF" and see for example: drwx-- 2 pete users 512 Jun 22 13:41 myfiles/ What "ls" command can I do IN THE CURRENT WORKING DIRECTORY to just see the "myfiles/" listing? That is, if I type "ls -alF myfiles" (or myfiles/), why does the output delve *into* this directory and list its contents? The only work around is "ls -alF | grep myfiles" it seems! [2] What is the switch to see the full date and time output, instead of this information being truncated to "Dec 3 2002" instead of "Dec 3 2002 15:16:01" for example? -- Peter Leftwich President & Founder, Video2Video Services Box 13692, La Jolla, CA, 92039 USA http://Www.Video2Video.Com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount My Creation [ls -c, -t -u etc]
On Sat, Jun 21, 2003 at 12:41:36AM -0400 or thereabouts, Peter Leftwich seemed to write: > On Thu, 19 Jun 2003, Patrick O'Reilly wrote: > > > I have noticed in the man page for 'find' that the primaries allow > > > selection based on time last "accessed", last "modified" and last > > > "change" of status. Evidently this info is held somewhere. I don't > > > have more info off hand, but perhaps this will nudge you in a useful > > > direction? > > > Patrick. > > And see 'man ls' and the switches -c, -t and -u. > > I was aware of and often use the -t switch (in a tcsh alias), but these > have to do with sorting. What if I wanted to see (maybe not as output from > a single command but a few) the creation date, last modification date, and > last access time for a directory? What are the command lines I'd use (to > include "." files and NOT recursively list within a/the directory)? Include . files - ls -a Don't recurse - DON'T include -R Inode change time - ls -lc Last modified - ls -l Last accessed - ls -lu Note that there is no "creation time" - it's actually just the inode change time. So it will change when you make a new link to the file, for example, or when you set any of the file's times other than last modified, with `touch'. -- Josh > > PS - PLEASE CC: ME IN YOUR REPLY > > -- > Peter Leftwich > President & Founder, Video2Video Services > Box 13692, La Jolla, CA, 92039 USA > http://Www.Video2Video.Com > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount My Creation [ls -c, -t -u etc]
On Thu, 19 Jun 2003, Patrick O'Reilly wrote: > > I have noticed in the man page for 'find' that the primaries allow > > selection based on time last "accessed", last "modified" and last > > "change" of status. Evidently this info is held somewhere. I don't > > have more info off hand, but perhaps this will nudge you in a useful > > direction? > > Patrick. > And see 'man ls' and the switches -c, -t and -u. I was aware of and often use the -t switch (in a tcsh alias), but these have to do with sorting. What if I wanted to see (maybe not as output from a single command but a few) the creation date, last modification date, and last access time for a directory? What are the command lines I'd use (to include "." files and NOT recursively list within a/the directory)? PS - PLEASE CC: ME IN YOUR REPLY -- Peter Leftwich President & Founder, Video2Video Services Box 13692, La Jolla, CA, 92039 USA http://Www.Video2Video.Com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"