- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: deleting directories
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
03-24-2005 12:22 AM
03-24-2005 12:22 AM
deleting directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 12:34 AM
03-24-2005 12:34 AM
Re: deleting directories
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 12:37 AM
03-24-2005 12:37 AM
Re: deleting directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 12:44 AM
03-24-2005 12:44 AM
Re: deleting directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 02:00 AM
03-24-2005 02:00 AM
Re: deleting directories
bdf || -d it returned the same info as doing just bdf?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 02:04 AM
03-24-2005 02:04 AM
Re: deleting directories
that will remove link
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 02:26 AM
03-24-2005 02:26 AM
Re: deleting directories
mkdir /tmp/mytest
cp
mkdir /mytest
mount /tmp/mytest /mytest
ll /mytest
rm -r /tmp/mytest/*
ll /mystest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2005 02:05 AM
03-25-2005 02:05 AM
Re: deleting directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2005 04:57 AM
03-25-2005 04:57 AM
Re: deleting directories
I don't think that's a "double pipe". It's two lower-case Ls, as the abreviated version of "ls -l", or "ll". "ll" or "ls -l" will show you if it's a file, directory or link. As in:
# cd /testdir
# ll
lrwxrwxrwx 1 root sys 7 Apr 9 2004 backup_disk -> /backup
drwxr-xr-x 2 root root 96 Sep 22 1999 lost+found
In the above listing, "ll" shows that "backup_disk" is a link to /backup, as indicated by the "l" in "lrwxrwxrwx" and the "->" pointing to the link destination. "lost+found" on the other hand is a directory, as indicated by the "drwx..". If I run:
# rm -r backup_disk
It will delete the contents of /backup and remove the "backup_disk" link in /tmp. The /backup directory will still exist, but will be empty. This is likely what happened in your case.
-greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2005 04:58 AM
03-25-2005 04:58 AM
Re: deleting directories
[ ABC = xyz ] && echo true || echo false
A symbolic link is not in itself a directory or file but simply an alias to something. It could be pointing to a filename or to a directory or to nothing. That makes symlinks a bit tricky and they should be used with caution. To see a symlink, use ll -d
To find all the symlinks in a particular directory such as /tmp:
find /tmp -type l -exec ll {} \;
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2005 05:11 AM
03-25-2005 05:11 AM
Re: deleting directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2005 04:59 AM
03-28-2005 04:59 AM
Re: deleting directories
The 'find /tmp -type l -exec ll {} \;' gives me an error 'find -type requires an argument'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2005 06:49 AM
03-28-2005 06:49 AM
Re: deleting directories
find /tmp -type l -exec ll {} \;
-type l means: locate links (l or the letter ell), and -exec means: run the folllowing command (ll or ell ell) where the name for ll is provided by the {} \; incantation.
Bill Hassell, sysadmin