LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to handle this command (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-handle-this-command-706380/)

trnz$mr 02-21-2009 04:16 AM

how to handle this command
 
Sorry to bug you with such pesky questions but, when I come across a command like this:

Quote:

# ./rc.wicd.new

Usage: ./rc.wicd.new {start|stop|restart}
what do I do?

I type in "start"

but it says the command is not found.

i'm using slack 12.2

alan_ri 02-21-2009 04:18 AM

I guess
Code:

# ./rc.wicd.new start
is what you want.

trnz$mr 02-21-2009 04:21 AM

yep!
that was exactly it.
Thanks a bunch

jschiwal 02-21-2009 04:22 AM

That looks like a script that starts services. Services are often started like "sudo /sbin/service <name> start".

Your usage would be
./rc.wincd.new start

If this script starts, stops or restarts a service, you may need to use "sudo" to run it as root.
sudo ./rc.wincd.new start

trnz$mr 02-21-2009 12:32 PM

Quote:

If this script starts, stops or restarts a service, you may need to use "sudo" to run it as root.
sudo ./rc.wincd.new start
Thanks, I'm going to start using it.

How do you go back to your regular user name for root? For instance, I used sh and now my user name for root is "root@ESSID" (don't ask) and I can't go back to "root@myoriginalname", even after reboot. Is there a way to undo it?

alan_ri 02-21-2009 12:50 PM

Just type exit and hit <enter>.You'll be you again and this is if I understand you correctly.

brianL 02-21-2009 02:05 PM

Quote:

Originally Posted by jschiwal (Post 3452072)
That looks like a script that starts services. Services are often started like "sudo /sbin/service <name> start".

Your usage would be
./rc.wincd.new start

If this script starts, stops or restarts a service, you may need to use "sudo" to run it as root.
sudo ./rc.wincd.new start

Had a beer again? :)
Quote:

I recently discovered that I have a one beer limit on LQ. After that my grammar & spelling suffer. Drat!
wincd = wicd

Wouldn't it be better copying or moving the old rc.wicd to rc.wicd.old and the rc.wicd.new to rc.wicd?


All times are GMT -5. The time now is 11:27 AM.