Now that I can't start a root session to delete files I tried to do this as root: # mv pop3proxy-ham-cache /dev/null mv: cannot overwrite non-directory `/dev/null' with directory `pop3proxy-ham-cache' I thought this is how you use dev/null what am I missing? Are there better ways to delete directories with root permissions? Thanks, Jerome
Jerome, On Wednesday 04 August 2004 20:49, Jerome Lyles wrote:
Now that I can't start a root session to delete files I tried to do this as root:
# mv pop3proxy-ham-cache /dev/null mv: cannot overwrite non-directory `/dev/null' with directory `pop3proxy-ham-cache'
I thought this is how you use dev/null what am I missing? Are there better ways to delete directories with root permissions?
It's not clear what you're trying to do. The special file "/dev/null" is a "bit bucket" for writing (you can write as much as you want and it never fails or fills up, nor is anything written to it retained anywhere) and an empty file for reading (reading never fails and never returns any data, either). If you're trying to remove a file, use the "rm" command: rm pop3proxy-ham-cache You could copy that file to /dev/null, though it would accomplish nothing to do so: cp pop3proxy-ham-cache /dev/null Here's another no-op that uses /dev/null: cat /dev/null >>pop3proxy-ham-cache
Thanks, Jerome
Randall Schulz
On Wednesday 04 August 2004 21:00, Randall R Schulz wrote:
On Wednesday 04 August 2004 20:49, Jerome Lyles wrote:
# mv pop3proxy-ham-cache /dev/null mv: cannot overwrite non-directory `/dev/null' with directory `pop3proxy-ham-cache'
If you're trying to remove a file, use the "rm" command:
rm pop3proxy-ham-cache
Since pop3proxy-ham-cache is a directory, the flag for recursive deletion has to be set: 'rm -r pop3proxy-ham-cache'. The HTML page file:/usr/share/doc/manual/suselinux-userguide_en/html/ch25s03.html explains a few basic shell commands, if the userguide is installed. HTH Michael
Michael, On Wednesday 04 August 2004 21:14, Michael Siefritz wrote:
On Wednesday 04 August 2004 21:00, Randall R Schulz wrote:
On Wednesday 04 August 2004 20:49, Jerome Lyles wrote:
# mv pop3proxy-ham-cache /dev/null mv: cannot overwrite non-directory `/dev/null' with directory `pop3proxy-ham-cache'
If you're trying to remove a file, use the "rm" command:
rm pop3proxy-ham-cache
Since pop3proxy-ham-cache is a directory, the flag for recursive deletion has to be set: 'rm -r pop3proxy-ham-cache'.
Right. I should have picked up on that from the "mv" diagnostic Jerome quoted. I'm still not sure that's what he was trying to do, though, but I suppose it's the best guess given what he wrote.
...
HTH Michael
Randall Schulz
On Wednesday 04 August 2004 06:25 pm, Randall R Schulz wrote:
Michael,
On Wednesday 04 August 2004 21:14, Michael Siefritz wrote:
On Wednesday 04 August 2004 21:00, Randall R Schulz wrote:
On Wednesday 04 August 2004 20:49, Jerome Lyles wrote:
# mv pop3proxy-ham-cache /dev/null mv: cannot overwrite non-directory `/dev/null' with directory `pop3proxy-ham-cache'
If you're trying to remove a file, use the "rm" command:
rm pop3proxy-ham-cache
Since pop3proxy-ham-cache is a directory, the flag for recursive deletion has to be set: 'rm -r pop3proxy-ham-cache'.
Right. I should have picked up on that from the "mv" diagnostic Jerome quoted.
I'm still not sure that's what he was trying to do, though, but I suppose it's the best guess given what he wrote.
...
HTH Michael
Randall Schulz
I was trying to remove the directory. Working from memory I thought mv was the way to go. I had forgotten remove and I was too lazy (or too sure I was right) to check the list of commands in my copy of A Practical Guide to Linux. Thanks, Jerome
Hi all, I am newbie in Suse Linux, before i have suse 9.0 Pro. and I try to install Aqsis 0.9.1 renderer, and its run perfectly, but after i installed suse 9.1 pro, i cannot installed aqsis 0.9.1. I just have assumsion that suse 9.1 have GCC that not supported the aqsis. because i ever try to install aqsis on different distro like Suse 9.0 Pro, Mandrake 10 PowerPack, Mandrake 9.1, Redhat 9.0 and everiting look ok, just on suse 9.1 i have this error Making all in aqsis make[1]: Entering directory `/usr/local/install/aqsis-0.9.1/aqsis' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/local/install/aqsis-0.9.1/aqsis' Making all in aqsltell make[1]: Entering directory `/usr/local/install/aqsis-0.9.1/aqsltell' /bin/sh ../libtool --mode=link g++ -g -O2 -o aqsltell aqsltell.o ../ libslxargs/libslxargs.la ../libshadervm/libshadervm.la ../libshaderexecenv/ libshaderexecenv.la ../libaqsistypes/libaqsistypes.la ../libargparse/ libargparse.la g++ -g -O2 -o .libs/aqsltell aqsltell.o ../libslxargs/.libs/libslxargs.so ../ libshadervm/.libs/libshadervm.so ../libshaderexecenv/.libs/ libshaderexecenv.so ../libaqsistypes/.libs/libaqsistypes.so -ldl ../ libargparse/.libs/libargparse.so -lz -Wl,--rpath -Wl,/usr/local/aqsis/lib ../libshaderexecenv/.libs/libshaderexecenv.so: undefined reference to `typeinfo for Aqsis::CqBasicSurface' ../libshaderexecenv/.libs/libshaderexecenv.so: undefined reference to `Aqsis::CqBasicSurface::strName() const' ../libshaderexecenv/.libs/libshaderexecenv.so: undefined reference to `Aqsis::CqBasicSurface::Uses() const' ../libshaderexecenv/.libs/libshaderexecenv.so: undefined reference to `Aqsis::CqBound::Encapsulate(Aqsis::CqBound const&)' ../libshaderexecenv/.libs/libshaderexecenv.so: undefined reference to `vtable for Aqsis::CqBasicSurface' ../libshaderexecenv/.libs/libshaderexecenv.so: undefined reference to `vtable for Aqsis::CqMotionMicroPolyGrid' ../libshaderexecenv/.libs/libshaderexecenv.so: undefined reference to `Aqsis::CqBasicSurface::CqBasicSurface[not-in-charge]()' collect2: ld returned 1 exit status make[1]: *** [aqsltell] Error 1 make[1]: Leaving directory `/usr/local/install/aqsis-0.9.1/aqsltell' make: *** [all-recursive] Error 1 Thank you and sorry about my english. Teddy
participants (4)
-
Jerome Lyles
-
Michael Siefritz
-
Randall R Schulz
-
Teddy Widhi Laksono