HI ,
I would like to open &PH& directory and see all the files in it.But I am not able to open it.Can you please tell me how to open it.I tried to open it with 'cd &PH&'
Thanks
Opening &PH& Directory
Moderators: chulett, rschirm, roy
Re: Opening &PH& Directory
sri75 wrote:I tried to open it with 'cd &PH&'
cd => change directory
How about ls?
gateleys
-
- Charter Member
- Posts: 299
- Joined: Wed Nov 13, 2002 5:38 pm
- Location: USA
& is a reserved character in unix, it runs a command in the background. This particular annoying directory needs special handling.
From now on, just use quotes around it: cd "&PH&"
From now on, just use quotes around it: cd "&PH&"
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You probably need "hard quotes" (single quotes).
You don't need to cd.
You don't need to cd.
Code: Select all
ls -lrt '&PH&'
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.