LAPORAN PRAKTIKUM SISTEM OPERASI

Percobaan 11 : Melihat tipe file

anistofa@anistofa-VirtualBox:~$ file Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...

file -C -m magicfiles Try `file --help' for more information. anistofa@anistofa-VirtualBox:~$ file * Desktop: directory Documents: directory Downloads: directory examples.desktop: ASCII text Music: directory Pictures: directory Public: directory Templates: directory Videos: directory anistofa@anistofa-VirtualBox:~$ file /bin/ls

/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

anistofa@anistofa-VirtualBox:~$

Percobaan 12 : Menyalin file

anistofa@anistofa-VirtualBox:~$ cp /etc/group fl anistofa@anistofa-VirtualBox:~$ cp /etc/group f1 anistofa@anistofa-VirtualBox:~$ ls -l total 44 drwxr-xr-x 2 anistofa anistofa 4096 2014-03-09 11:06 Desktop drwxr-xr-x 3 anistofa anistofa 4096 2014-03-09 11:13 Documents drwxr-xr-x 2 anistofa anistofa 4096 2014-03-09 11:06 Downloads -rw-r--r-- 1 anistofa anistofa 179 2014-03-09 10:55 examples.desktop -rw-r--r-- 1 anistofa anistofa 856 2014-03-09 13:07 f1 -rw-r--r-- 1 anistofa anistofa 856 2014-03-09 13:07 fl drwxr-xr-x 2 anistofa anistofa 4096 2014-03-09 11:06 Music drwxr-xr-x 2 anistofa anistofa 4096 2014-03-09 11:06 Pictures drwxr-xr-x 2 anistofa anistofa 4096 2014-03-09 11:06 Public drwxr-xr-x 2 anistofa anistofa 4096 2014-03-09 11:06 Templates drwxr-xr-x 2 anistofa anistofa 4096 2014-03-09 11:06 Videos anistofa@anistofa-VirtualBox:~$

anistofa@anistofa-VirtualBox:~$ cp -i fl f2 anistofa@anistofa-VirtualBox:~$ cp -i f1 f2 cp: overwrite `f2'? yes anistofa@anistofa-VirtualBox:~$

anistofa@anistofa-VirtualBox:~$ cp -i fl f2 anistofa@anistofa-VirtualBox:~$ cp -i f1 f2 cp: overwrite `f2'? yes anistofa@anistofa-VirtualBox:~$ cp -i fl f2 anistofa@anistofa-VirtualBox:~$ cp -i f1 f2 cp: overwrite `f2'? yes

anistofa@anistofa-VirtualBox:~$ ls backup f1 f2 f3 anistofa@anistofa-VirtualBox:~$ cd backup anistofa@anistofa-VirtualBox:~/backup$ ls f1 f2 f3 anistofa@anistofa-VirtualBox:~/backup$

Percobaan 13 : Melihat isi file

anistofa@anistofa-VirtualBox:~/backup$ cat f1 root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4:anistofa tty:x:5: disk:x:6: lp:x:7: mail:x:8: news:x:9: uucp:x:10: man:x:12: proxy:x:13: kmem:x:15: dialout:x:20:anistofa fax:x:21: voice:x:22:

cdrom:x:24:anistofa floppy:x:25: tape:x:26: sudo:x:27: audio:x:29:pulse dip:x:30: www-data:x:33: backup:x:34: operator:x:37: list:x:38: irc:x:39: src:x:40: gnats:x:41: shadow:x:42: utmp:x:43: video:x:44: sasl:x:45: plugdev:x:46:anistofa staff:x:50: games:x:60: users:x:100: nogroup:x:65534: libuuid:x:101: crontab:x:102: syslog:x:103: fuse:x:104: messagebus:x:105: mlocate:x:106: ssh:x:107: avahi-autoipd:x:108:

avahi:x:109: netdev:x:110: lpadmin:x:111:anistofa ssl-cert:x:112: couchdb:x:113: pulse:x:114: pulse-access:x:115: utempter:x:116: rtkit:x:117: saned:x:118: admin:x:119:anistofa gdm:x:120: nopasswdlogin:x:121: anistofa:x:1000: sambashare:x:122:anistofa

anistofa@anistofa-VirtualBox:~/backup$ more f1 root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4:anistofa tty:x:5: disk:x:6: lp:x:7: mail:x:8: news:x:9: uucp:x:10: man:x:12: proxy:x:13:

kmem:x:15: dialout:x:20:anistofa fax:x:21: voice:x:22: cdrom:x:24:anistofa floppy:x:25: tape:x:26: sudo:x:27: audio:x:29:pulse dip:x:30: www-data:x:33: backup:x:34: operator:x:37: list:x:38: irc:x:39: src:x:40: gnats:x:41: shadow:x:42: utmp:x:43: video:x:44: sasl:x:45: plugdev:x:46:anistofa staff:x:50: games:x:60: users:x:100: nogroup:x:65534: libuuid:x:101: crontab:x:102: syslog:x:103: fuse:x:104:

messagebus:x:105: mlocate:x:106: ssh:x:107: avahi-autoipd:x:108: avahi:x:109: netdev:x:110: lpadmin:x:111:anistofa ssl-cert:x:112: couchdb:x:113: pulse:x:114: pulse-access:x:115: utempter:x:116: rtkit:x:117: saned:x:118: admin:x:119:anistofa gdm:x:120: nopasswdlogin:x:121: anistofa:x:1000: sambashare:x:122:anistofa

anistofa@anistofa-VirtualBox:~/backup$ pg f1 root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4:anistofa tty:x:5: disk:x:6: lp:x:7: mail:x:8:

news:x:9: uucp:x:10: man:x:12: proxy:x:13: kmem:x:15: dialout:x:20:anistofa fax:x:21: voice:x:22: cdrom:x:24:anistofa floppy:x:25: tape:x:26: sudo:x:27: audio:x:29:pulse dip:x:30: www-data:x:33: backup:x:34: operator:x:37: list:x:38: irc:x:39: src:x:40: gnats:x:41: shadow:x:42: utmp:x:43: video:x:44: sasl:x:45: plugdev:x:46:anistofa staff:x:50: games:x:60: users:x:100: nogroup:x:65534:

libuuid:x:101: crontab:x:102: syslog:x:103: fuse:x:104: messagebus:x:105: mlocate:x:106: ssh:x:107: avahi-autoipd:x:108: avahi:x:109: netdev:x:110: lpadmin:x:111:anistofa ssl-cert:x:112: couchdb:x:113: pulse:x:114: pulse-access:x:115: utempter:x:116: rtkit:x:117: saned:x:118: admin:x:119:anistofa gdm:x:120: nopasswdlogin:x:121: anistofa:x:1000: sambashare:x:122:anistofa

Percobaan 14 : Mengubah nama file

anistofa@anistofa-VirtualBox:~/backup$ mv f1 prog.txt anistofa@anistofa-VirtualBox:~/backup$ ls f2 f3 prog.txt anistofa@anistofa-VirtualBox:~/backup$ anistofa@anistofa-VirtualBox:~/backup$ mv f1 prog.txt anistofa@anistofa-VirtualBox:~/backup$ ls f2 f3 prog.txt anistofa@anistofa-VirtualBox:~/backup$

Percobaan 15 : Menghapus file

anistofa@anistofa-VirtualBox:~/backup/mydir$ rm f1 anistofa@anistofa-VirtualBox:~/backup/mydir$ anistofa@anistofa-VirtualBox:~/backup$ cp mydir/f1 f1 anistofa@anistofa-VirtualBox:~/backup$ cp mydir/f2 f2 anistofa@anistofa-VirtualBox:~/backup$ rm f1 anistofa@anistofa-VirtualBox:~/backup$ rm -i f2 rm: remove regular file `f2'? yes anistofa@anistofa-VirtualBox:~/backup$

Percobaan 16 : Mencari kata/kalimat dalam file

anistofa@anistofa-VirtualBox:~/backup$ grep root /etc/passwd root:x:0:0:root:/root:/bin/bash anistofa@anistofa-VirtualBox:~/backup$ grep ":0:" /etc/passwd root:x:0:0:root:/root:/bin/bash anistofa@anistofa-VirtualBox:~/backup$ grep student /etc/passwd anistofa@anistofa-VirtualBox:~/backup$

Percobaan 17 : mengubah mode atau permission (hak akses)

anistofa@anistofa-VirtualBox:~/backup$ # chmod u+rwx,g+rw,o+x file.txt anistofa@anistofa-VirtualBox:~/backup$ # chmod 761 file.txt anistofa@anistofa-VirtualBox:~/backup$

Percobaan 18 : menghapus direktori

anistofa@anistofa-VirtualBox:~/backup$ rmdir folder anistofa@anistofa-VirtualBox:~/backup$ ls anistofa@anistofa-VirtualBox:~/backup$ rmdir folder anistofa@anistofa-VirtualBox:~/backup$ ls

anistofa@anistofa-VirtualBox:~/backup$ rmdir --ignore-fail-on-non-empty asli anistofa@anistofa-VirtualBox:~/backup$ ls mydir anistofa@anistofa-VirtualBox:~/backup$

Tugas

1. buat direktori pada folder tmp dengan susunan seperti berikut dengan command line:

a. tmp/mydir/

b. mydir/A/B/C

c. A/test direktori/sub direktori

anistofa@anistofa-VirtualBox:~$ temp/mydir bash: temp/mydir: No such file or directory anistofa@anistofa-VirtualBox:~$ temp temp: command not found anistofa@anistofa-VirtualBox:~$ mkdir /tmp/test anistofa@anistofa-VirtualBox:~$ mkdir /tmp/test/a/b/c mkdir: cannot create directory `/tmp/test/a/b/c': No such file or directory anistofa@anistofa-VirtualBox:~$ mkdir /tmp/test/a anistofa@anistofa-VirtualBox:~$ mkdir /tmp/test/a/b anistofa@anistofa-VirtualBox:~$ mkdir /tmp/test/a/b/c anistofa@anistofa-VirtualBox:~$ mkdir /tmp/test/a/test direktori anistofa@anistofa-VirtualBox:~$ mkdir /tmp/test/a/"tes direktori" anistofa@anistofa-VirtualBox:~$

2. tulis penjelasan dari perintah-perintah berikut berserta opsinya dalam bahasa Indonesia:

a. rmdir untuk remove direktori atau menghapus direktori

b. grep untuk mencari kata/kalimat dalam file

c. chmod untuk mengubah mode atau permission (hak akses)

d. ping untuk memeriksa konektivitas jaringan berbasis teknologi Transmission Control Protocol/Internet Protocol (TCP/IP).

Tugas Jaringan Networking

Tugas 1. buatlah konfigurasi IP pada windows dan linux dengan konfigurasi berikut dengan menggunakan command:

a. Windows : - IP : 192.168.0.[nomor urut anda] - IP : 192.168.0.16 - Gateway : 255.255.0.0 a. Windows : - IP : 192.168.0.[nomor urut anda] - IP : 192.168.0.16 - Gateway : 255.255.0.0

anistofa@anistofa-VirtualBox:~$ sudo su root@anistofa-VirtualBox:/home/anistofa# ifconfig eth0 192.168.0.46 root@anistofa-VirtualBox:/home/anistofa# ifconfig eth0 netmask 255.255.0.0 root@anistofa-VirtualBox:/home/anistofa# ifconfig eth0 Link encap:Ethernet HWaddr 08:00:27:ef:60:c4

inet addr:192.168.0.46 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::a00:27ff:feef:60c4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:51 errors:0 dropped:0 overruns:0 frame:0 TX packets:173 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6074 (6.0 KB) TX bytes:25086 (25.0 KB) inet addr:192.168.0.46 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::a00:27ff:feef:60c4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:51 errors:0 dropped:0 overruns:0 frame:0 TX packets:173 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6074 (6.0 KB) TX bytes:25086 (25.0 KB)

root@anistofa-VirtualBox:/home/anistofa#

2. Test koneksi kedua komputer tersebut dan catat hasilnya

Test Koneksi di Windows

Test Koneksi Di Ubuntu