Quote:
Originally posted by wannabe_guru
hi guys,
isnt cd -
supposed to go back to the previous line??
Not that I'm aware of ... by "last line" you mean the last command that was entered? If you mean the previous directory, then it's
cd ..
Quote:
another question, im looking at this book that has these exercises but let me show u what happens
(swindon)34% cd ~/IN2011
(swindon)35% cd
(swindon)36% pwd
/u3.bath/s19/cv896
(swindon)37% pwd
/u3.bath/s19/cv896
(swindon)38%
after typing cd ~/IN2011 it asked to type cd followed by pwd and something is supposed to change
but i dont get whats happening in the replies
The tilde changes to your home directory, so the first command changes to the IN2011 directory inside your home directory.
The cd command by itself switches to your home directory since you're not supplying it with any parameters.
And pwd just displays the current directory you're in, which appears to be /u3.bath/s19/cv896 (your home directory)
What else does your book say? What's supposed to change?