- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help on ls -l Command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 12:34 PM
01-18-2002 12:34 PM
Help on ls -l Command
How can I get the last modification date/time in YYYY MM DD HH:MI:SS format for files older than 1 year when running LS -L command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 12:45 PM
01-18-2002 12:45 PM
Re: Help on ls -l Command
or ls -alt
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 12:52 PM
01-18-2002 12:52 PM
Re: Help on ls -l Command
Standard Unix. However, you can get a "super ls" from here:
http://gatekeep.cs.utah.edu/hppd/hpux/Shells/sls-1.0/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 12:54 PM
01-18-2002 12:54 PM
Re: Help on ls -l Command
Try this:
# ls -acl
This will list the time of last modification of the inode (file creation, mode changes etc)
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 12:58 PM
01-18-2002 12:58 PM
Re: Help on ls -l Command
Perhaps the gurus out there may come up with something more magical for you.
Good luck,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 12:59 PM
01-18-2002 12:59 PM
Re: Help on ls -l Command
For clarification purposes, try this :
1. Create a file with modification date and time of Jan 2, 2001 12:35 PM.
touch -m 0101123502 new
2. LS -L output is shown below :
0 Jan 1 12:35 new
3. Now change the modification date/time to Jan 1, 2001 12:35
touch -m 0101123501 new
4. Now try the LS -LTRA command.
0 Jan 1 2001 new
Notice that hour/minute information is missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 03:20 AM
01-21-2002 03:20 AM
Re: Help on ls -l Command
$ ll /usr/conf/lib/libspt.a
-r--r--r-- 1 bin bin 63556 Oct 30 1997 /usr/conf/lib/libspt.a
$ echo /usr/conf/lib/libspt.a | cpio -o 2>/dev/null | cpio -ivt 2>/dev/null
100444 bin 63556 Oct 30 23:50:34 1997 /usr/conf/lib/libspt.a
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 03:51 AM
01-21-2002 03:51 AM
Re: Help on ls -l Command
Another hack but easy
tar -cf - dtksh.examples/|tar -tVf -
Gives user no and gid which is only disadvantage
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 04:32 AM
01-21-2002 04:32 AM
Re: Help on ls -l Command
here is a pointer
find $1 -mtime +365|while read line
do
if [ -d $line ]
then
echo " "
echo $(ll -d $line)
else
echo $(ll $line|cut -c1-32) $(tar -cf - $line|tar -tVpf -|cut -c 17-128)
fi
done
Steve Steel