- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- want to remove file created by tar
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
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
тАО07-18-2008 01:33 AM
тАО07-18-2008 01:33 AM
i was compressing a directory using following command.
tar -cvf -C /aaa
the filesystem got full and i had to terminate tar command before it will complete.
a file -C is created under root file system which is occupying 56mb space. i tried to remove it using rm command but it does not work as file name is -C.
please suggest, what will be solution for this issue, now root is 100% utilized.
thanks,
Roy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2008 01:41 AM
тАО07-18-2008 01:41 AM
Re: want to remove file created by tar
rm \-C
or
rm -i *C and just say yes to the relevant file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2008 01:45 AM
тАО07-18-2008 01:45 AM
Re: want to remove file created by tar
What error you are getting?
If file does not exist then you can check with any non-printable character in filename explained here : http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1250600
If file is in use kinda error then make sure you have killed tar process completly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2008 01:49 AM
тАО07-18-2008 01:49 AM
Re: want to remove file created by tar
# rm -i *C
rm: illegal option -- C
Usage: rm [-Rfir] file ...
# rm \-C
rm: illegal option -- C
Usage: rm [-Rfir] file ...
#
here is the file...
-rw-r--r-- 1 root sys 54059008 Jul 18 04:13 -C
# pwd
/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2008 01:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2008 01:55 AM
тАО07-18-2008 01:55 AM
Re: want to remove file created by tar
/
$ cd "-C"
$ cd ..
$ rmdir -i "$OLDPWD"
Will this make any sence?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2008 01:59 AM
тАО07-18-2008 01:59 AM
Re: want to remove file created by tar
rm -- -C
This removed the file, so try that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2008 02:02 AM
тАО07-18-2008 02:02 AM
Re: want to remove file created by tar
it works fine..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2008 02:03 AM
тАО07-18-2008 02:03 AM
Re: want to remove file created by tar
Yes, this "--" is Posix standard. You can also use: rm ./-C
>Shrikant: What error you are getting?
Files starting with a "-" are a different kettle of fish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2008 02:25 AM
тАО07-18-2008 02:25 AM