- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unix "ls -al" command HP-UX B.11.23 U ia64
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
Discussions
Discussions
Forums
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
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
тАО10-30-2007 05:57 AM
тАО10-30-2007 05:57 AM
total 32
2 drwxr-xr-x 7 sidpers sidpers 1024 Oct 30 00:23 ./
16 drwxr-xr-x 32 root root 8192 Oct 30 00:20 ../
8 -rw------- 1 sidpers sidpers 3380 Oct 30 12:41 200
0 drwxrwxrwx 2 sidpers sidpers 96 Oct 30 00:23 local/
0 drwxrwxrwx 2 root root 96 Oct 30 00:15 lost+found/
0 drwxrwxrwx 3 sidpers sidpers 96 Oct 30 00:18 reports/
2 drwxrwxrwx 11 sidpers sidpers 1024 Oct 30 00:20 sysadm/
4 drwxrwxrwx 8 sidpers sidpers 2048 Oct 30 05:35 ups/
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 06:31 AM
тАО10-30-2007 06:31 AM
Re: Unix "ls -al" command HP-UX B.11.23 U ia64
Some would say that an HP-UX forum would be a
better place for this question than this
Linux forum.
> [...] Is this a user profile issues?
Most likely. Try "man ls", and look for
"-F" and/or "-p" (for the slash).
Ask the shell what "ls" is. Depending on the
shell, this might be something like "type
ls", "which ls", ...
"man ls" should also explain various options
which affect the date-time data displayed
("-c", "-u", ...).
Or just specify "/usr/bin/ls" instead of
(plain) "ls".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 07:27 AM
тАО10-30-2007 07:27 AM
Re: Unix "ls -al" command HP-UX B.11.23 U ia64
There is no harm with a forward slash at the end..that is default with "ls -al"
check the date and TZ from the non super user to confirm if it is showing different than required.
#date
#echo $TZ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 09:12 AM
тАО10-30-2007 09:12 AM
SolutionIf you do:
# whence -v ls
...I think you will find that 'ls' has been aliases to include the '-p' switch. This enables the trailing slash in the display of directories.
You can unalias 'ls' or use '/usr/bin/ls' to override the behavior.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 09:16 AM
тАО10-30-2007 09:16 AM
Re: Unix "ls -al" command HP-UX B.11.23 U ia64
...and for your "incorrect" timestamps, verify that your TZ (timezone) is set to your expectations:
# echo ${TZ}
You can see the difference by doing something like:
# TZ=UTC ls -l
# TZ=EST5EDT ls -l
Remember, every '.profile' can alias commands to its taste. As well, every '.profile' (user) can set the timezone that he/she wants to see.
Regards!
...JRF...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 02:57 PM
тАО10-30-2007 02:57 PM
Re: Unix "ls -al" command HP-UX B.11.23 U ia64
You can also quote the command to remove the alias: \ls -al
I alias ls and ll to add -F. And I quote it if there are particular NFS files/symlinks that make it too slow.