- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: A file with the filename ~
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
тАО11-18-2008 09:29 PM
тАО11-18-2008 09:29 PM
I have a file with the filename ~ in one of my HP-UX directories. I have no idea how it was created and how to delete it.
-rw-r--r-- 1 bscsprod bscsprod 524324 Nov 18 21:09 localhost_log.2008-11-18.txt
-rw-r--r-- 1 bscsprod bscsprod 16806 Nov 19 09:57 localhost_log.2008-11-19.txt
-rw-r--r-- 1 bscsprod bscsprod 0 Nov 19 10:09 ~
It would be great if anyone can explain what is that file and how to remove it.
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2008 09:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2008 10:07 PM
тАО11-18-2008 10:07 PM
Re: A file with the filename ~
>rw-r--r-- 1 bscsprod bscsprod 0 Nov 19 10:09 ~
The size of the file being '0' hints that it was created by mistake, while executing a file creation command and passing the home dir reference as '~'
You can remove it by using:
# rm "~"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2008 10:11 PM
тАО11-18-2008 10:11 PM
Re: A file with the filename ~
Now tilde substitution happens at the begin of word. So just use ./~ ?
With 'testdrive' gone I lost easy HPUX access to try stuff, but I also expect \~ to work
fwiw,
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2008 10:18 PM
тАО11-18-2008 10:18 PM
Re: A file with the filename ~
#touch -- \~
Then listed with:
#ll -- \~
Then removed with:
#rm -i -- \~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 10:01 PM
тАО11-19-2008 10:01 PM
Re: A file with the filename ~
files of special nature :
In the directory do
ls -1 > out.lst
vi out.lst and remove all entries except your ~
then run a for loop to remove the entry
for i in $(cat out.lst)
print $i
rm $i
done