Re: OT exam question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 17 Dec 2002, David Sudjiman wrote:

> On Mon, 16 Dec 2002, faisal gillani wrote:
> > 1 write a one line command to create a directory
> > called dir1 to move into it list its content & @ last
> > print your working directory "all in one line ?"
> 
> mkdir dir1 &&  find ./dir1 && pwd

based on the question, i'd write

$ mkdir dir && cd dir && ls && pwd

there's also just separating the commands with a ";", but that's
a pretty tacky way of satisfying the requirement of being 
"all in one line".  really, both ways are still a sequence of
four commands, and i really hate cutesy, trick answers.

rday



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux