if the first command is executed successfully then execute the second command in linux
example
if the kuldeep folder is present at your working directory then this will create test.txt file in this folder.
[root@localhost~]#ls -ld kuldeep && touch kuldeep/test.txt
if the first command does not execute successfully then execute the second command in linux
example
if the kuldeep folder is not present at your working directory then this will create it
[root@localhost~]#ls -ld kuldeep || mkdir kuldeep
pls put your comments and suggestion.
example
if the kuldeep folder is present at your working directory then this will create test.txt file in this folder.
[root@localhost~]#ls -ld kuldeep && touch kuldeep/test.txt
if the first command does not execute successfully then execute the second command in linux
example
if the kuldeep folder is not present at your working directory then this will create it
[root@localhost~]#ls -ld kuldeep || mkdir kuldeep
pls put your comments and suggestion.