LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-28-2012, 03:53 AM   #1
llmi187
Member
 
Registered: Jan 2012
Posts: 78

Rep: Reputation: Disabled
Smile how to change cmd line #shutdown -r now to #restart x


I wanna change <shutdown -r now> instant to <restart x>.Plz tell me where path.
 
Old 01-28-2012, 05:20 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Are you talking about using an alias for "shutdown -r now?"
Code:
alias new_command_name='restart X'
Note that is just an example. Please let me know if that is what you are looking for, unless you are trying to do something else. What exactly are you trying to do, anyway?

Cheers,

Josh
 
Old 01-28-2012, 05:48 AM   #3
llmi187
Member
 
Registered: Jan 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
Question alias new_command_name='restart X'

Because I wanna replace cmdline name like that eg.iptable<IPT>etc..Let me noe that path cuz I wanna see that clear in "vi"code.Your showin is not complete to noe plz let me noe that "vi"program again.

Appreciate you
 
Old 01-28-2012, 05:50 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
I am sorry, but I am having a hard time trying to understand what you are saying. If anything, could you try to use an online translator to translate from your native language to English?
 
Old 01-28-2012, 06:14 AM   #5
llmi187
Member
 
Registered: Jan 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
Your showin is not complete to know plz let me know that location path and vi program
 
Old 01-28-2012, 08:12 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator response

Welcome to LQ!

Quote:
Originally Posted by llmi187 View Post
Your showin is not complete to know plz let me know that location path and vi program
You have reported both of your posts. Is there a problem we can help you with? I do not see any moderation necessary.

As to the location of shutdown & vi;
Quote:
~# whereis vi
vi: /usr/bin/vi /usr/X11R6/bin/vi /usr/bin/X11/vi /usr/X11/bin/vi

~# whereis shutdown
shutdown: /sbin/shutdown /usr/man/man2/shutdown.2.gz /usr/man/man8/shutdown.8.gz /usr/share/man/man2/shutdown.2.gz /usr/share/man/man8/shutdown.8.gz /usr/X11/man/man2/shutdown.2.gz /usr/X11/man/man8/shutdown.8.gz
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NSLOOKUP - One Line cmd Line NetRock Programming 6 09-23-2010 07:53 AM
[SOLVED] Cmd Line help SteveThePirate Linux - Newbie 7 08-14-2009 02:40 AM
Cmd line bittorrent quesiton Jukas Linux - Software 2 10-27-2005 03:55 PM
cmd line send attachment? jedimastermopar Linux - General 2 06-16-2005 12:51 PM
booting then to cmd line..... Why not to GUI?? Ax787 Linux - Newbie 1 10-28-2003 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration