I want to know how to place files using touch command inside an directory whether it is multiple or single file.help is appreciated
Asked
Active
Viewed 136 times
-1
-
Does this answer your question? How does one inspect the directory structure information of a unix/linux file? – Arun Sanga Feb 01 '20 at 18:09
1 Answers
0
I got the answer
mkdir -p mydir/{colors,shape,animals}
mkdir -p mydir/colors/{basic,blended}
touch mydir/colors/basic/{red,blue,green}
touch mydir/colors/blended/{yellow,orange,pink}
touch mydir/shape/{circle,square,cube}
mkdir -p mydir/animals/{mammals,reptiles}
touch mydir/animals/mammals/{platypus,bat,dog}
touch mydir/animals/reptiles/{snakes,crocodile,lizard}

annahri
- 2,075

Arun Sanga
- 35