Anda di halaman 1dari 7

Sistem Operasi

Muhammad Lutfi Abdillah


2102009
3 in 1 Balangan
1. Buatlah directory tree menggunakan bash command seperti dibawah!

- Bash
- cd /mnt/d
- mkdir (nama file bebas)
- cd (nama file)
- mkdir i18n services taglib utils
- cd i18n
- touch messages.properties
- touch messages_da.properties
- touch messages_de.properties
- touch messages_es.properties
- touch messages_fr.properties
- touch messages_it.properties
- touch messages_ja.properties
- touch messages_nl.properties
- touch messages_pt_BR.properties
- touch messages_pt_PT.properties
- touch messages_ru.properties
- touch messages_th.properties
- touch messages_zh_CN.properties
- ls
- cd ..
- cd taglib
- touch TestTaglib.groovy
- mkdir com
- cd com
- mkdir shri
- cd shri
- mkdir webalbum
- cd webalbum
- mkdir tablib
- cd ..
- cd ..
- cd ..
- cd ..
- cd utils
- mkdir com
- cd com
- mkdir shri
- cd shri
- mkdir webalbum
- cd webalbum
- mkdir utils
- cd utils
- touch PasswordCodec.groovy
2. Buatlah shell script dengan ketentuan sbb:

-------------------------------------
PROGRAM UAS STKOM SAPTA COMPUTER 2022
DIPROGRAM OLEH <NAMA> <KELAS>
-------------------------------------
<Tanggal hari ini>

Silakan input data anda:

NIM :
Nama :
Kelas :
Nilai SO :

Terima kasih.
Berikut data anda:

NIM : ...
Nama : ...
Kelas : ...
Nilai SO : ...

Bye...

- nano uas.sh
- #!/bin/sh
- echo “-----------------------------------------------------------”
- echo “PROGRAM UAS STKOM SAPTA COMPUTER 2022 DIPROGRAM
OLEH MUHAMMAD LUTFI ABDILLAH 3 IN 1 BALANGAN”
- echo “-----------------------------------------------------------”
- echo
- date
- echo
- echo “Silahkan input data anda:”
- echo –n “NIM :”
- read NIM
- echo -n ”Nama :”
- read Nama
- echo –n “Kelas :”
- read Kelas
- echo –n “Nilai SO :”
- read SO
- echo
- echo “Terima Kasih.”
- echo “Berikut data anda:”
- echo
- echo “NIM :$NIM”
- echo “Nama :$Nama”
- echo “Kelas :$Kelas”
- echo “Nilai SO :$SO”
- echo
- echo “Bye”
- bash uas.sh

Anda mungkin juga menyukai