Stuck at environment(bash profile)


#1

how to open ~/.bash_profile in nano.is this right.
~/.bash_profile


#2

You mean edit it ?
nano ~/.bash_profile

there is whitespace between nano and ~


#3

How do you : Save the file.

Press Enter to write the filename

Exit nano.

Clear the terminal window.


#4

In real life I would never use Nano. I always use vi or emacs.
Are you asking a question here or just stating what you've learnt ?


#5

I don't know how to open it.. do you type it into nano?


#6

You type in the command line using nano as the editor program
Like so

nano [file name you want to open including the directory path]

thus for bash_profile

nano ~/.bash_profile is typed in at the command prompt

Are you having a hard time understanding what is being asked ?


#7

it just doesn't work for some people. it's a bug.


#8

Please post a screenshot showing the bug.


#9

3 posts were split to a new topic: 2. Nano


#10

It's definitely a bug. I literally copied and pasted the text from the instructions into the command line (step by step) and it worked that way.


#11

For saving : Ctrl + O (use keyboard)
For Exit :Ctrl + X(use keyboard):slightly_smiling:


#13

These are functions, and when executed in order they are working but not checking the instruction #2 to allow user to move on. I have not seen one thread solve this for anyone,. From: Stuck Where You Are.


#14

Ok, and my terminal won't allow copy/paste functions by clicking or ctrl codes.


#15

nikkyaaryan, somehow your instruction is so much more clear. A thousand thank yous!


#16

Thanks to your clarity and some good old fashioned obsessive persistence I got past step three, kept resetting exercise, could not get my bad text to go away, arrows stayed green so it was hard to know where my mistakes were.
After finding your code (3 day search) advice i whizzed through and finished.


#17

I got the same problem. I have done all the steps 3 times now, but I cannot get past it. I guess I’ll keep trying then.


#18

A post was split to a new topic: How is this not working?


#19