SRCDS Steam group


How to edit file inside ssh in linus
#1
Hello, I forgot the command to open file inside linux ssh to edit server like change slot instead going to ftp! Can anyone tell me the command. Thanks
Reply
#2
Code:
nano filename
Reply
#3
or

Code:
vi filename
Warning Level: 0%
Reply
#4
Arjen, vi might be a bit too advanced for someone asking this question ;-) (Even I only remember, how to exit that thing :-D)
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#5
Code:
esc :wq!
;-)
Warning Level: 0%
Reply
#6
I prefer "esc :q!" to make sure I don't accidentally ruined my file if I executed some other commands unintentionally ;-) and then I usually start nano xD
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#7
When you don't want to edit a file you can use cat filename or more filename
Warning Level: 0%
Reply
#8
I know... Just, when I started with Linux, I was used to type "edit" for editing files (was coming from DOS). My first Linux distribution had an alias for vi called edit, so I quite often started accidentally vi ;-) And as a newcomer to Linux, vi is not the best choice for an editor...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#9
vi, ya either love it or ya hate it. I've been using vim, which is ~marginally~ more friendly. But perhaps I'll try sudo apt-get install nano.
Reply
#10
Get WinSCP and configurate it to use Notepad++. Big Grin
Reply
#11
that's not always an option... e.g. I usually deny root login via ssh for security reasons, so WinSCP cannot access system files... and also, I am running most of the time on Linux, so I have no WinSCP Toungue
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)