LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 05-19-2009, 09:34 AM   #1
cesar7160
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Question How can Fedora run automatically a Terminal command at the startup?


Is there something like "autoexec.bat" for Fedora?
 
Old 05-19-2009, 09:54 AM   #2
kellinwood
Member
 
Registered: Jan 2006
Location: Culver City, California
Distribution: Fedora
Posts: 64

Rep: Reputation: 21
Put the commands in /etc/rc.local. This is the last script run during init and is meant for this purpose.
 
Old 05-19-2009, 12:00 PM   #3
cesar7160
LQ Newbie
 
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kellinwood View Post
Put the commands in /etc/rc.local. This is the last script run during init and is meant for this purpose.
I tried that before but I can't save that file.
I got an error telling me that I don't have the permissions to save the file.

How can I save that file?
 
Old 05-19-2009, 12:20 PM   #4
kellinwood
Member
 
Registered: Jan 2006
Location: Culver City, California
Distribution: Fedora
Posts: 64

Rep: Reputation: 21
Code:
sudo vi /etc/rc.local
or

Code:
su
# enter root password here
vi /etc/rc.local
exit
 
Old 05-19-2009, 12:54 PM   #5
rikijpn
Member
 
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
/etc/rc.local is for global changes (all users). You usually write that kind of changes in your .bashrc file (in your home directory).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run user command on Terminal startup coolfrog Linux - General 4 09-26-2004 10:08 AM
Automatically run scripts on startup? Phaethar Fedora 10 09-24-2004 03:35 AM
How can I run a command automatically at startup? luwigie Linux - General 8 08-26-2004 10:05 PM
How do I get Fedora to automatically run a command during startup? jlsain Linux - Software 2 03-23-2004 05:03 AM
start terminal & run command automatically peeples Linux - General 2 09-08-2003 03:57 PM


All times are GMT -5. The time now is 10:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration