In general if you open up a terminal, you should start in your home directory. You can check this by running
pwd (stands for something like “present working directory”, in case that helps you remember for the future) in the terminal, so it would look something like
in your case. Lines that start with a
$ are meant to indicate a terminal entry (pretty standard convention, since the default prompt in many terminals is a
If the script has already been made exectuable, then you can simply do
since you named it
More generally, the command to change directories is
cd </path/to/your/directory>, while the command to examine the contents of a directory is
So to change to your home directory, you could use
$ cd /home/bent.
~ character is a shortcurt for one’s home directory, so you could also use
$ cd ~
And just for future reference, the
cd command while automatically change to your home directory if you use it without specifying any directory, i.e. the following command will change to your home directory
And to check the contents, you could use any of
$ ls /home/bent
$ ls ~
or, if already in your home directory, just
ls without any arguments will display the contents of whatever directory you are currently in.
That was probably overkill, but hope it helps!