Bash . Running Several Commands All at Once

commandline session

$ls
src  war
$cd & ls &
[1] 2587
[2] 2588
$src  war

[1]-  Done                    cd
[2]+  Done                    ls --color=auto
$pwd
/home/jeffrin/beautiful-work
$
$cd & ls & cd &
[1] 2590
[2] 2591
[3] 2592
$src  war

[1]   Done                    cd
[2]-  Done                    ls --color=auto
[3]+  Done                    cd
$pwd
/home/jeffrin/beautiful-work
$cd .. & pwd  &
[1] 2593
[2] 2594
$/home/jeffrin/beautiful-work

[1]-  Done                    cd ..
[2]+  Done                    pwd
$pwd
/home/jeffrin/beautiful-work
$cd &
[1] 2614
$pwd
/home/jeffrin/beautiful-work
[1]+  Done                    cd
$ls & cd ; pwd
[1] 2625
/home/jeffrin
$src  war

[1]+  Done                    ls --color=auto  (wd: ~/beautiful-work)
(wd now: ~)
$pwd
/home/jeffrin
$

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s