cd dir && command

Ed Greshko Ed.Greshko at greshko.com
Thu Aug 24 09:36:20 UTC 2006


Kaushal Shriyan wrote:
> Hi ALL
> 
> I am referring to http://www.pixelbeat.org/cmdline.html
> 
> I have a query I did executed the above command
> 
> For example
> 
> [root at e root]# pwd
> /root
> [root at e root]# cd /home && ls
> kaushal  mydefs  newbuild  ram  test
> [root at e home]#
> 
> It didnot returned to the current directory I mean /root instead it
> went to /home
> 
> I am doing wrong somewhere

You are forgetting to leave the ( and ) as shown.

-- 
While it may be true that a watched pot never boils, the one you don't
keep an eye on can make an awful mess of your stove.
		-- Edward Stevenson




More information about the fedora-list mailing list