LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2012, 02:13 PM   #1
tarzan538
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 03-28-2012, 03:35 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ 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
 
1 members found this post helpful.
Old 03-28-2012, 03:47 PM   #3
tarzan538
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you!

I will try it ASAP and post back!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to get the absolute path of the running executable file and current work path ? 915086731 Programming 3 11-01-2011 09:28 AM
[SOLVED] Perforce edits my files when I give a depot path but not if I specify the local path gregorian Linux - Software 1 10-21-2011 11:57 AM
Perforce edits my files when I give a depot path but not if I specify the local path gregorian Linux - Software 1 10-07-2011 05:03 PM
bash script path issue - how to pass a path as a string to a variable PiNPOiNT Programming 5 04-17-2009 05:48 PM
set up java_home path in /home/user/.bashrc but use path in /usr/lib/java vitalstrike82 Slackware 4 01-13-2009 11:25 PM


All times are GMT -5. The time now is 02:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration