Download our latest MNC Answers Application at Play Store. Download Now

File System Hands-Ons [Unix > File System] | Accenture TFA Training Pre-Learning Modules

Disclaimer: The primary purpose of providing this solution is to assist and support anyone who are unable to complete these courses due to a technical issue or a lack of expertise. This website's information or data are solely for the purpose of knowledge and education.

Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).

All Question of the Hands-On Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!


1. Copy Complete Directory

Path: UNIX/File System/Copy Complete Directory/copydirectory.sh

cp -ir mydir/colors/basic mydir/colors/blended mydir/shape/


2. Copy File 1

Path: UNIX/File System/Copy File 1/copy.sh

cp mydir/colors/basic/red mydir/colors/blended


3. Copy File 3

Path: UNIX/File System/Copy File 3/copy3.sh

cp mydir/colors/basic/green mydir/animals/reptiles/


4. Copy File 4

Path: UNIX/File System/Copy File 4/copy4.sh

cp livingthings/birds/nonflyingbirds/penguin livingthings/birds/flyingbirds


5. Copy File 5

Path: UNIX/File System/Copy File 5/copy5.sh

cp livingthings/birds/flyingbirds/eider livingthings/animals/mammals/


6. Copy File 6

Path: UNIX/File System/Copy File 6/copy6.sh

cp livingthings/birds/flyingbirds/eagle livingthings/birds/nonflyingbirds/


7. Directory Creation - 1

Path: UNIX/File System/Directory Creation - 1/directory.sh

mkdir mydir

cd mydir

mkdir colors

mkdir shape

mkdir animals

cd shape

touch circle

touch square

touch cube

cd ..

cd colors

mkdir basic

mkdir blended

cd basic

touch red 

touch blue

touch green

cd ..

cd blended

touch yellow

touch orange

touch pink

cd ..

cd ..

cd animals

mkdir mammals

mkdir reptiles

cd mammals

touch platypus

touch bat

touch dog

cd ..

cd reptiles

touch snakes

touch crocodile

touch lizard

cd


8. Directory Creation - 2

Path: UNIX/File System/Directory Creation - 2/directory.sh

mkdir livingthings

cd livingthings

mkdir birds

mkdir plants

mkdir animals

cd birds

mkdir flyingbirds

mkdir nonflyingbirds

cd flyingbirds

touch stork

touch eagle

touch eider

cd ..

cd nonflyingbirds

touch kiwi

touch ostrich

touch penguin

cd ..

cd ..

cd plants

touch carrot

touch cabbage

touch daisy

cd ..

cd animals

mkdir mammals

mkdir reptiles

cd mammals

touch jaguar

touch dog

touch tiger

cd ..

cd reptiles

touch alligator

touch skink

touch turtle

cd


9. File Permission - 1

Path: UNIX/File System/File Permission - 1/filepermission.sh

chmod u+rw,g+rw,o+rw emp.txt


10. File Permission - 2

Path: UNIX/File System/File Permission - 2/filepermission2.sh

chmod 620 dept.txt


11. File Permission - 3

Path: UNIX/File System/File Permission - 3/filepermission3.sh

chmod g-w emp.txt


12. File Permission - 4

Path: UNIX/File System/File Permission - 4/filepermission4.sh

chmod 711 emp.txt


13. File Permission - 5

Path: UNIX/File System/File Permission - 5/fileper1.sh

chmod 666 student.txt


14. File Permission - 6

Path: UNIX/File System/File permission - 6/filper2.sh

chmod 646 student.txt


15. File Permission - 7

Path: UNIX/File System/File Permission - 7/fileper2.sh

chmod g+x department.txt


16. File Permission - 8

Path: UNIX/File System/File Permission - 8/fileper.sh

chmod 626 student.txt


17. Move File 1

Path: UNIX/File System/Move File 1/movefile1.sh

mv mydir/animals/mammals/dog mydir/shape


18. Move File 2

Path: UNIX/File System/Move File 2/move2.sh

mv mydir/animals/reptiles/snakes mydir/shape/


19. Move File 3

Path: UNIX/File System/Move File 3/movequestion2.sh

mv mydir/shape/circle mydir/animals/mammals/


20. Move File 4

Path: UNIX/File System/Move File 4/movefile1.sh

mv livingthings/animals/reptiles/turtle livingthings/plants


21. Move File 5

Path: UNIX/File System/Move File 5/mvfile.sh

cd livingthings/plants/

mv carrot ../animals/mammals/


22. Move File 6

Path: UNIX/File System/Move File 6/movefil2.sh

mv livingthings/animals/reptiles/skink livingthings/plants


23. Remove Directory

Path: UNIX/File System/Remove Directory/rmdir3.sh

rm -r livingthings/animals/mammals livingthings/animals/reptiles


24. Remove File - 1

Path: UNIX/File System/Remove File - 1/remove.sh

rm mydir/colors/blended/orange


25. Remove File - 2

Path: UNIX/File System/Remove File - 2/rmfile.sh

rm livingthings/birds/nonflyingbirds/ostrich



If you have any queries, please feel free to ask on the comment section.

If you want MCQs and Hands-On solutions for any courses, Please feel free to ask on the comment section too.

Please share and support our page!