Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-14-2012, 12:13 PM   #1
LQ Newbie
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
bash script error

hi all... im a newbie to all this. i need help with a simple script. i have to change to one directoy then to another but i get an error cd: /~ no such file or directory

Can you help plz..ty


cd /tmp
cd /~
Old 04-14-2012, 12:27 PM   #2
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
First this is wrong.
Usually there is no userhome under /
should read
cd ~
But this does not work on all *nixes.
Use instead
cd $HOME
1 members found this post helpful.
Old 04-14-2012, 12:31 PM   #3
LQ Newbie
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
ahhh what an A-hole i am .... thank you


bash scripting

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
bash script read error and awk ouptut error whited Programming 4 10-16-2007 07:05 PM
bash script error noir911 Programming 4 09-27-2006 07:52 AM
bash script error noir911 Programming 5 09-12-2006 06:42 AM
error when tying to run python script(bash error?) shanenin Programming 5 01-10-2006 10:01 AM
bash script error corbis_demon Linux - Newbie 7 09-27-2004 10:41 AM > Forums > Linux Forums > Linux - Newbie

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

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