LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help on Path (https://www.linuxquestions.org/questions/linux-newbie-8/help-on-path-936931/)

tarzan538 03-28-2012 02:13 PM

Help on Path
 
The problem I am having not knowing much about Linux is the following;

In my home directory ("wpollock" on website) I have a text file called "resort". I am trying to read this file and I know that I need a pathname but not sure how to do this. I kept getting "access denied" when I do this;

/HOME/wpollock/resort--can somebody tell me what I am doing wrong?

T3RM1NVT0R 03-28-2012 03:35 PM

@ Reply
 
Hi tarzan538,

Welcome to LQ!!!

You can read a file in your home directory using any of the following ways:

1.
Code:

less /home/wpollock/resort
2.
Code:

more /home/wpollock/resort
3.
Code:

cat /home/wpollock/resort
Remember that in last option you will not get option to scroll. So I would suggest you to choose either first or second option. I have noticed that you used /HOME. Remember linux is case sensitive so be careful when you give path. It should be /home instead of /HOME

tarzan538 03-28-2012 03:47 PM

Thank you!
 
I will try it ASAP and post back!


All times are GMT -5. The time now is 04:13 PM.