How Do You Change The Default Editor From Vi (Centos)?
#1
Posted 25 November 2012 - 09:38 PM
Is there anyway to make it so that crontab -e brings up nano? Or a way to make it so that crontab isn't wiped when the server is reset?
#2
Posted 25 November 2012 - 10:35 PM
My Ubuntu says that it'll use /usr/bin/editor as a fallback; some Googling suggests that's true for CentOS too.-e
This option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified crontab will be installed automatically.
[edit] IIRC you can manually modify the crontab file so long as you restart/SIGHUP the cron daemon.
Edited by requinix, 25 November 2012 - 10:40 PM.
#3
Posted 25 November 2012 - 10:46 PM
export EDITOR=nano
Why $_SERVER['PHP_SELF'] is bad. || Why ORDER BY RAND() is bad || Every problem can be solved with rm -rf *
Random Quote:
"
#4
Posted 26 November 2012 - 12:05 PM
#5
Posted 26 November 2012 - 12:21 PM
#6
Posted 26 November 2012 - 08:01 PM
Every year I hope Google will come out with some super-advanced server OS but they never do.
I'm gonna go find my stupid bashrc file, which would be /etc/startup if Linux made any sense. Thanks for the help.
#7
Posted 26 November 2012 - 08:35 PM
#8
Posted 26 November 2012 - 08:48 PM
Why $_SERVER['PHP_SELF'] is bad. || Why ORDER BY RAND() is bad || Every problem can be solved with rm -rf *
Random Quote:
"
#9
Posted 26 November 2012 - 08:53 PM
I hate Linux! Why does stuff reset on reboot?
Set a variable in Window's (cmd) shell and see how long it lasts too. The issue seems to be between the keyboard and the chair.
http://thorpesystems.com | http://proemframework.org | http://github.com/trq
SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
#10
Posted 28 November 2012 - 01:25 AM
[/font][/color]
Set a variable in Window's (cmd) shell and see how long it lasts too. The issue seems to be between the keyboard and the chair.
If somethings truely advanced, shouldn't it be easy to use?
And if you make changes with msconfig, they don't revert. Crontab is a file, doesn't make sense it just disapears.
I guess between Windows and Android I'm just use to OS'es not being a hodgepodge of esoterical crap. I *could* learn it, but I'd much rather see it replaced with something well designed and user friendly. Logmein shows just how well remote desktoping can work - what I'd really love to see if a server OS that you could manage though a client app.
Guess as everything gets easier it just makes linux look worse. Open source sounds good in concept, but corperate software is really polished and user friendly lately... hell, anymore it's even becoming free.
#11
Posted 28 November 2012 - 01:46 AM
EDIT: and really, the more granular the control you need over something becomes, the more complex it becomes to control.
Edited by Pikachu2000, 28 November 2012 - 01:48 AM.
Why $_SERVER['PHP_SELF'] is bad. || Why ORDER BY RAND() is bad || Every problem can be solved with rm -rf *
Random Quote:
"
#12
Posted 28 November 2012 - 01:50 AM
.bashrc file (which is in your home folder, since it's yours, btw).Same with Windows: If you use "set" in a CMD prompt to set an environment variable, it'll be lost when you close that prompt.
msconfig doesn't enter the equation, as you're comparing apples to glass figurines.What you have is a case of missing knowledge, which is not a fault of the OS. So I'd advice you, as trq did, to drop the hate and stop blaming the OS for your lack of knowledge.
PS: ssh is a client application, so is vi, nano, crontab and msconfig. Logmein, however, is a server and client application.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












