Skip to content
← Back to Community
editing a text file
Profile icon
nathanHeath1

What is the command to edit a text file in the bash shell, the nano command is not working

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
Profile icon
lalita90
Profile icon
nathanHeath1
Comments
hotnewtop
Profile icon
SixBeeps

nano is a program, which is not installed on the repl.it servers. Although, it appears vi is installed, so you can use that.

EDIT: vim is also installed.

Profile icon
m4k3rhum4n

Ahh okay I see! I’ll try this , thanks! @niorg2606

Profile icon
Vandesm14

@m4k3rhum4n if @niorg2606 answered your question, be sure to mark it as answered.

Profile icon
doineednumbers

@SixBeeps I followed along with this answer, but I can't exit vim!

Profile icon
MarcoAlbertini

@doineednumbers by pc you type 'i' to insert and 'esc' to run commands. Once you are in command line of vi type :wq! to save and exit. Hope is usefull.

Profile icon
doineednumbers

@MarcoAlbertini It's a joke

Profile icon
MarcoAlbertini

@doineednumbers oh, sorry i'm not the smartest in the world

Profile icon
blissekhator

I tried using vim and vi but the code doesn't work for bash