|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Code:
NOTES The rm command uses getopt(3) to parse its arguments, which allows it to accept the `--' option which will cause it to stop processing flag options at that point. This will allow the removal of file names that begin with a dash (`-'). For example: rm -- -filename
__________________
Verbose mode can also be turned on for SSH2 with the (surprise!) VerboseMode keyword. |
|
|||
important to save that keystroke
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison Forum Netiquette |
|
||||
The man page : http://www.freebsd.org/cgi/man.cgi?q...SE&format=html
The 'bundles flags' option is for backwards compatibility. Examples are shown in the '@archive' section like this : 'tar -c -f'. Somewhere (I can't find it now) it says that the parameters for the flags have to be in the same order as the flags, but I can't find anywhere that it says that the last flag befor the archive name has to be the 'f' flag, hence my creation of the '-z' file (ie. tar -c -f -z arch.tz *.dbf -> file called -z). If the man pages were a Wiki I'd edit the line for -f to say that it should be the last argument before the archive file name. -- FreeBSD fan and user. Dentist by profession. I work here : http://theparkrowdentalpractice.co.uk/ Last edited by michaelrmgreen; 24th June 2011 at 11:01 AM. Reason: Experimental sig added. |
|
||||
I was going to make an example, but I just realized that OpenBSDs tar doesn't suport @archive like FreeBSDs does.... lol.
looking at the FreeBSD manual page: Code:
tar -c -f - newfile @original.tar Thus, if tar's new option parser supports it, these commands should be equivalent: Code:
tar -c -f new.tar newfile @original.tar tar -cf new.tar newfile @original.tar tar cf new.tar newfile @original.tar Personally, if it's not one of the c, x, f, v, t, u, or r flags, I don't bundle them.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
Quote:
Quote:
Quote:
So I guess the next thing to check is that man(1) is right! (as if anyone actually reads these things.
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PHP read file contents - Maximum file size | cksraj | Programming | 1 | 21st September 2009 11:38 AM |
DMZ zone - I can't find a mistake... | maurobottone | OpenBSD Security | 23 | 11th January 2009 11:27 PM |
Noob: Updating To OpenBSD-Stable. | MetalHead | OpenBSD Installation and Upgrading | 3 | 11th November 2008 02:06 AM |
Unix noob's license plate | drhowarddrfine | Off-Topic | 16 | 20th September 2008 04:57 PM |
file:/// | mfaridi | FreeBSD Security | 3 | 27th July 2008 02:18 PM |