Re: two questions
On Fri, 25 Jun 2004 01:24:50 -0400, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: [snip] On Thu, 24 Jun 2004 23:06:29 -0400 (EDT), Michael Sharp [EMAIL PROTECTED] wrote: [snip] what is the command to remove the file --directory [snip] actually, *i* suggested using -r. what i don't get is the dashes. it works just fine without. ...at least for me. please see my last message. -r is necessary if -directory is a _directory_. But OP said its a _file_, in which case it is niether necessary nor harmful. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: two questions
On Fri, 25 Jun 2004 01:22:05 -0400, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: [] as requested...(standard shell and standard user) ~ mkdir test Don't forget the leading hyphen. Try ~ mkdir -test which will, of course, give you an error. then try ~ mkdir ./-test and proceed as below... ~ rm ./-test rm: ./-test: No such file or directory ~ rm -- --test rm: --test: No such file or directory ~ rm -r test remove test? y ~ mkdir test ~ rm -rf test [] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Configure ssh to behave like rsh. How?
I was interested in this for a slightly different reason --- I would like to allow some users to ssh into my machine so they can port forward but not allow them to actually login to the machine. I found http://groups.google.com/groups?selm=200206210808.g5L88SJ15420_splat.grant.org%40ns.sol.net to work. On Fri, 25 Jun 2004 15:45:24 +0900, Rob [EMAIL PROTECTED] wrote: Hi, I have a cluster of PCs, on which the 'slaves' used to only allow rsh connections, to execute commands, but no logins. I have removed the r-commands, and want to use the ssh command family instead. Although 'ssh slaveN command' works fine, this also allows login to the slave PC, simply by typing 'ssh slaveN'. How can I configure sshd, so that it will allow remote command execution, but will refuse logins? Thanks, Rob. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: command-line calculator?
man expr man bc On Fri, 25 Jun 2004 08:41:02 -0700, CD Baby [EMAIL PROTECTED] wrote: What simple built-in command-line tools are available if I want to just do some simple math on the command line? If I'm there in a shell, and need to know what 17 times 36 equals? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: two questions
On Thu, 24 Jun 2004 23:06:29 -0400 (EDT), Michael Sharp [EMAIL PROTECTED] wrote: I'm having a brain freeze tonight and apparently forgot some basic UNIX commands.. what is the command to remove the file --directory rm *directory* = nope rm *directory* = nope rm \-\-\directory = nope rm -i * = nope and dosent even see the file rm ./-directory Also, if I'm in / and want to tar the entire filesystem EXCLUDING the directory jail ( /jail ) what would be the switches to tar? Lookup --exclude in man tar. You want : $ tar cvf file.tar --exclude jail . Dana ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: two questions
On Thu, 24 Jun 2004 23:51:09 -0400, epilogue [EMAIL PROTECTED] wrote: On Thu, 24 Jun 2004 20:29:35 -0700 Hemal Pandya [EMAIL PROTECTED] wrote: On Thu, 24 Jun 2004 23:06:29 -0400 (EDT), Michael Sharp [EMAIL PROTECTED] wrote: I'm having a brain freeze tonight and apparently forgot some basic UNIX commands.. what is the command to remove the file --directory rm *directory* = nope rm *directory* = nope rm \-\-\directory = nope rm -i * = nope and dosent even see the file rm ./-directory funny, though i tried these on a test directory... rm ./-test rm -- --test ...neither worked for me. Thats very surprising. The fist option above has worked for ever and the second at least for a decade or so. Can you post some output? admittedly, both suggestions are new to me and i'm likely 'misreading' the statements. I should think so. anyhoo, i've always had success deleting directories with: rm -r rm -rf # if i'm lazy and want to save myself a 'y' and an 'enter', or simply don't feel like being second guessed. :) Neither of this would work by itself, because the file argument to rm is not optional. What argument would you pass? epi Also, if I'm in / and want to tar the entire filesystem EXCLUDING the directory jail ( /jail ) what would be the switches to tar? Lookup --exclude in man tar. You want : $ tar cvf file.tar --exclude jail . Dana ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]