Nama : M. Anugrah Rifkianda
NIM : 1802116
NIM : 1802116
Soal 1
1. Buat folder "NIM_UAS".
-Mkdir 1802116_uas
2. Didalamnya buat folder epithet, malevolent dan tyrotoxim.
-Mkdir 1802107_uas/epithet
-Mkdir 1802107_uas/malevolent
-Mkdir 1802107_uas/tyrotoxim
-Mkdir 1802107_uas/malevolent
-Mkdir 1802107_uas/tyrotoxim
3. Copy Folder malevolent Ke Folder epithet.
- cp -r 1802116_uas/Malevolent 1802116_uas/epithet
4. Rename Folder tryrotoxism Menjadi quiescent.
-Mv 1802116_uas/tyrotoxism 1802034_uas/quiescent
5. Copy folder epithet kedalam Folder malevolent.
- Cd 1802116_uas
- 1802116_uas cp -r epithet ~/1802116_uas/malevolent
- 1802116_uas cp -r epithet ~/1802116_uas/malevolent
6. Rename nama folder nim_uas/malevolent/epithet/malevolent
Menjadi tyrotoxism.
- Cd ~
- Mv 1802116_uas/malevolent/epithet/malevooent
- 1802116_uas/malevolent/epithet/tyrotoxism
- Mv 1802116_uas/malevolent/epithet/malevooent
- 1802116_uas/malevolent/epithet/tyrotoxism
7. Dan pindahkan folder tyrotoxism ke folder quiescent.
- Mv 1802116_uas/Malevolent/epithet/tyrotoxism 1802116_uas/Malevolent/epithet/quiescent
8.Kemudian buat folder quiescent didalam folder nim_uas/epithet/malevolent
- Cd 1802116_uas/epithet/malevolent
- 1802116_uas/epithet/malevolent Mkdir quiescant
- Cd 1802116_uas/epithet/malevolent
- 1802116_uas/epithet/malevolent Mkdir quiescant
9. Buat folder epithet dalam folder nim_uas/quiescent/tyrotoxism.
- Cd ~
- Cd 1802116_uas/quiescent/tyrotoxism
- 1802116_uas/quiescnt/tyrotoxism Mkdir epithet
- Cd 1802116_uas/quiescent/tyrotoxism
- 1802116_uas/quiescnt/tyrotoxism Mkdir epithet
10. Setelah itu hapus folder nim_uas/quiescent/tyrotoxism/epithet
- 1802116_uas/quiescent/tyrotoxism rmdir epithet
11. Copy Folder nim_uas/epithet/malevolent/quiscent
kedalam folder nim_uas/epithet
- Cd ~
- Cd 1802116_uas/epithet/malevolent
- 1802116_uas/epithet/malevolent/ cp -r quiescent ~/1802116_uas/epithet
- Cd 1802116_uas/epithet/malevolent
- 1802116_uas/epithet/malevolent/ cp -r quiescent ~/1802116_uas/epithet
12. Pindah kan folder nim_uas/epithet/malvolent/quiscant
kedalam folder tyrotoxism.
- Cd ~
- 1802116_uas/epithet/ malevolent /quiescent
- 1802116_uas/quiescent/tyrotoxism/quuescent
- 1802116_uas/epithet/ malevolent /quiescent
- 1802116_uas/quiescent/tyrotoxism/quuescent
13. Buat file dengan nama file1.txt ke dalam folder nim_uas/epithet/quiescent.
- Cd 1802116_uas/epithet/quiescent
- Touch 1 file1.txt
- Touch 1 file1.txt
14. Dan kemudian ubah hak akses Folder nim_uas/malevolent/epithet
menjadi drw---wxr-x“Mengunakan letter coding system”
- cd 1802116_uas/malevolent
- chmod u-x, g-r, g+w epithet
- ls -l
- chmod u-x, g-r, g+w epithet
- ls -l
15. Kemudian kompres folder nim_uas/epithed dengan
nama arsip.zip
- cd -
- cd 1802116_uas/epithed
- zip arsip.zip epithed
16.extrak file arsip.zip kedalam folder nim_uas/quiescent
- Unzip arsip.zip -d quiescant
Soal 2
1.buat program perulangan dengan nama ujian.sh didalam
folder 1802107_uas/Melavolent dan jalan kan dengan hasil out put seperti
berikut:
Perulangan ke 1
Peeulangan ke 3
Perulangan ke 5
Perulangan ke 7
Coding :
- nano ujian.sh
#!bin/bash
i=1
while [ $i -lt 9 ];do
echo "perulangan = "$i
let i=i+2
done
- bash ujian.sh
Komentar
Posting Komentar