09/12/2014
A. Praktikum
1. jalankan komputer dan login dengan username selain root dan password
masing-masing.
Hasil : nur@nur-Satellite-L740:~$
2. catat nama direktori saat ini dengan menggunakan perintah “$pwd” dan
tekan ‘enter’
-root@nur-Satellite-L740:/home# pwd
hasil : /home /nur
3. ketik “$sudo su” dan tekan ‘enter’
Hasil : nur@nur-Satellite-L740:~$ sudo su
[sudo] password for nur:
4. masukkan password root dan tekan ‘enter'
Hasil : root@nur-Satellite-L740:/home/nur#
5. jalankan sekuen perintah berikut ini dan catat hasil yang diperoleh sesuai
petunjuk dalam sekuen.
Hasil :
a. pwd
root@nur-Satellite-L740:/home# pwd
/home /nur
- pwd berfungsi untuk menampilkan posisi absolut dari direktori saat itu.
Sehingga jika perintah ini dijalankan
b. root@nur-Satellite-L740:/home# cd
root@nur-Satellite-L740:~# pwd
/root
- merubah letak direktori dari /home/nur menjadi di direktori /root
c. root@nur-Satellite-L740:~# ls -al
total 24
drwx------ 2 root root 4096 Des 2 04:27 .
drwxr-xr-x 22 root root 4096 Des 2 00:36 ..
-rw------- 1 root root 1433 Des 2 06:18 .bash_history
-rw-r--r-- 1 root root 3106 Peb 20 2014 .bashrc
-rw------- 1 root root 80 Des 2 05:16 .lesshst
-rw-r--r-- 1 root root 140 Peb 20 2014 .profile
root@nur-Satellite-L740:/home# cd
root@nur-Satellite-L740:~# pwd
/root
- Untuk menampilkan semua daftar isi sebuah direktori dalam bentuk long listing pada direktori /root
d. root@nur-Satellite-L740:/etc# ls -al | more
total 1124
drwxr-xr-x 128 root root 12288 Des 9 14:28 .
drwxr-xr-x 22 root root 4096 Des 2 00:36 ..
drwxr-xr-x 3 root root 4096 Apr 17 2014 acpi
-rw-r--r-- 1 root root 2981 Apr 17 2014 adduser.conf
drwxr-xr-x 2 root root 4096 Des 2 00:38 alternatives
-rw-r--r-- 1 root root 401 Peb 20 2014 anacrontab
-rw-r--r-- 1 root root 112 Jan 10 2014 apg.conf
drwxr-xr-x 6 root root 4096 Apr 17 2014 apm
drwxr-xr-x 3 root root 4096 Apr 17 2014 apparmor
drwxr-xr-x 8 root root 4096 Apr 17 2014 apparmor.d
drwxr-xr-x 5 root root 4096 Apr 17 2014 apport
drwxr-xr-x 6 root root 4096 Des 2 00:39 apt
drwxr-xr-x 3 root root 4096 Apr 17 2014 aptdaemon
drwxr-xr-x 2 root root 4096 Apr 17 2014 at-spi2
drwxr-xr-x 3 root root 4096 Apr 17 2014 avahi
-rw-r--r-- 1 root root 2177 Apr 9 2014 bash.bashrc
-rw-r--r-- 1 root root 45 Mar 23 2014 bash_completion
drwxr-xr-x 2 root root 4096 Des 2 00:38 bash_completion.d
-rw-r--r-- 1 root root 356 Jan 2 2012 bindresvport.blacklist
-rw-r--r-- 1 root root 321 Apr 16 2014 blkid.conf
lrwxrwxrwx 1 root root 15 Des 2 00:32 blkid.tab -> /dev/.blkid.tab
drwxr-xr-x 2 root root 4096 Apr 17 2014 bluetooth
root@nur-Satellite-L740:/etc# cat passwd
nur:x:1000:1000:nur hariyati,,,:/home/nur:/bin/bash
e. root@nur-Satellite-L740:/etc# cd -
/
root@nur-Satellite-L740:/# pwd
/
root@nur-Satellite-L740:/# cd /
root@nur-Satellite-L740:/# ls -al
total 100
drwxr-xr-x 22 root root 4096 Des 2 00:36 .
drwxr-xr-x 22 root root 4096 Des 2 00:36 ..
drwxr-xr-x 2 root root 4096 Des 2 00:38 bin
drwxr-xr-x 4 root root 4096 Des 2 00:38 boot
drwxrwxr-x 2 root root 4096 Des 2 00:35 cdrom
drwxr-xr-x 16 root root 4200 Des 9 14:28 dev
drwxr-xr-x 128 root root 12288 Des 9 14:28 etc
drwxr-xr-x 4 root root 4096 Des 2 00:36 home
lrwxrwxrwx 1 root root 33 Des 2 00:36 initrd.img -> boot/initrd.img-3.13.0-24-generic
drwxr-xr-x 23 root root 4096 Des 2 00:38 lib
drwx------ 2 root root 16384 Des 2 00:32 lost+found
drwxr-xr-x 3 root root 4096 Des 2 00:42 media
drwxr-xr-x 2 root root 4096 Apr 11 2014 mnt
drwxr-xr-x 2 root root 4096 Apr 17 2014 opt
dr-xr-xr-x 197 root root 0 Des 9 2014 proc
drwx------ 2 root root 4096 Des 2 04:27 root
drwxr-xr-x 23 root root 740 Des 9 14:23 run
drwxr-xr-x 2 root root 12288 Des 2 00:38 sbin
drwxr-xr-x 2 root root 4096 Apr 17 2014 srv
dr-xr-xr-x 13 root root 0 Des 9 2014 sys
drwxrwxrwt 6 root root 4096 Des 9 14:28 tmp
drwxr-xr-x 10 root root 4096 Apr 17 2014 usr
drwxr-xr-x 13 root root 4096 Apr 17 2014 var
lrwxrwxrwx 1 root root 30 Des 2 00:36 vmlinuz -> boot/vmlinuz-3.13.0-24-generic
Menampilkan semua daftar direktori (min3)
6. Arahkan direktori menuju ke direktori /dev dengan mengunakan perintah
berikut ini :
root@adinda-Aspire-4750:/# cd /dev
root@adinda-Aspire-4750:/dev# ls -la
Oriented :
crw------- 1 root root 10, 235 Des 9 14:22 autofs
crw------- 1 root root 10, 234 Des 9 14:22 btrfs-control
crw------- 1 root root 5, 1 Des 9 14:22 console
crw------- 1 root root 10, 60 Des 9 14:22 cpu_dma_latency
crw------- 1 root root 10, 203 Des 9 14:22 cuse
Block Oriented:
drwxr-xr-x 2 root root 700 Des 9 14:28 block
drwxr-xr-x 2 root root 80 Des 9 14:28 bsg
drwxr-xr-x 5 root root 100 Des 9 14:28 disk
drwxr-xr-x 2 root root 80 Des 9 14:22 dri
drwxr-xr-x 4 root root 320 Des 9 14:22 input
7. keluar atau logout dari terminal root dengan menggunakan perintah
“$exit” dan tekan ‘enter’.
Hasil : root@nur-Satellite-L740:/dev# exit
exit
nur@nur-Satellite-L740:~$
8. pastikan anda berada di direktori “$/home/user”
Hasil : nur@nur-Satellite-L740:~$ cd /home/nur
nur@nur-Satellite-L740:~$
9. jalankan perintah berikut ini.
a. nur@nur-Satellite-L740:~$ mkdir johan
nur@nur-Satellite-L740:~$ ls -al
total 128
drwxr-xr-x 17 nur nur 4096 Des 9 14:50 .
drwxr-xr-x 4 root root 4096 Des 2 00:36 ..
-rw------- 1 nur nur 16 Des 2 00:50 .bash_history
-rw-r--r-- 1 nur nur 220 Des 2 00:36 .bash_logout
-rw-r--r-- 1 nur nur 3637 Des 2 00:36 .bashrc
mkdir adalah perintah untuk membuat suatu direktori/folder melalui terminal. Kemudian ls -al berfungsi untuk menampilkan list/daftar yang ada pada direktori tersebut.
b. nur@nur-Satellite-L740:~$ cd johan
nur@nur-Satellite-L740:~/johan$ pwd
/home/nur/johan
nur@nur-Satellite-L740:~/johan$
- menampilkan direktori /home/nur/johan
c. nur@nur-Satellite-L740:~/johan$ mkdir kerja
nur@nur-Satellite-L740:~/johan$ cd kerja
nur@nur-Satellite-L740:~/johan/kerja$ pwd
/home/nur/johan/kerja
nur@nur-Satellite-L740:~/johan/kerja$
- pada langkah ini anda membuat direktori “kerja” di dalam di dalam direktori “johan”
10. jalankan perintah berikut ini catat hasilnya di laporan sementara.
Hasil :
nur@nur-Satellite-L740:/$ cd /etc
nur@nur-Satellite-L740:/etc$ ls -al resolv.conf
lrwxrwxrwx 1 root root 29 Des 2 00:35 resolv.conf -> ../run/resolvconf/resolv.conf
nur@nur-Satellite-L740:/etc$ cat resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nur@nur-Satellite-L740:/etc$ cd network
nur@nur-Satellite-L740:/etc/network$ ls -al interfaces
-rw-r--r-- 1 root root 82 Des 2 00:29 interfaces
nur@nur-Satellite-L740:/etc/network$ cat interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
nur@nur-Satellite-L740:/etc/network$
11. jalankan sekuen perintah berikut ini :
catatan : pastikan di direktori “$/home/user” sudah ada direktori dengan
nama <nama anda> dan sub-direktori dengan nama kerja.
Hasil :
a. nur@nur-Satellite-L740:/etc/network$ cd
nur@nur-Satellite-L740:~$ cd /etc
nur@nur-Satellite-L740:/etc$ cd network
nur@nur-Satellite-L740:/etc/network$ cp interfaces /home/nur/johan/kerja
nur@nur-Satellite-L740:/etc/network$ ls -al
total 40
drwxr-xr-x 7 root root 4096 Apr 17 2014 .
drwxr-xr-x 128 root root 12288 Des 9 14:28 ..
drwxr-xr-x 2 root root 4096 Apr 17 2014 if-down.d
drwxr-xr-x 2 root root 4096 Apr 17 2014 if-post-down.d
drwxr-xr-x 2 root root 4096 Apr 17 2014 if-pre-up.d
drwxr-xr-x 2 root root 4096 Apr 17 2014 if-up.d
-rw-r--r-- 1 root root 82 Des 2 00:29 interfaces
drwxr-xr-x 2 root root 4096 Apr 4 2014 interfaces.d
lrwxrwxrwx 1 root root 12 Des 2 00:32 run -> /run/network
Hasil : Menampilkan semua file pada direktori /etc/network
nur@nur-Satellite-L740:/etc/network$ cp /etc/resolv.conf /home/nur/kerja
nur@nur-Satellite-L740:/etc/network$
total 40
drwxr-xr-x 7 root root 4096 Apr 17 2014 .
drwxr-xr-x 128 root root 12288 Des 9 14:28 ..
drwxr-xr-x 2 root root 4096 Apr 17 2014 if-down.d
drwxr-xr-x 2 root root 4096 Apr 17 2014 if-post-down.d
drwxr-xr-x 2 root root 4096 Apr 17 2014 if-pre-up.d
drwxr-xr-x 2 root root 4096 Apr 17 2014 if-up.d
-rw-r--r-- 1 root root 82 Des 2 00:29 interfaces
drwxr-xr-x 2 root root 4096 Apr 4 2014 interfaces.d
lrwxrwxrwx 1 root root 12 Des 2 00:32 run -> /run/network
12. Jalankan sekuen perintah berikut ini :
Hasil :
nur@nur-Satellite-L740:~$ cd /home/nur/johan/kerja
nur@nur-Satellite-L740:~/johan/kerja$ mv interfaces antarmuka
root@nur-Satellite-L740:/home/nur/johan/kerja# mv resolv.conf resolver.cnf
root@nur-Satellite-L740:/home/nur/johan/kerja# ls -al
total 12
drwxrwxr-x 2 nur nur 4096 Des 6 01:01 .
drwxrwxr-x 3 nur nur 4096 Des 5 19:53 ..
-rw-r--r-- 1 nur nur 82 Des 6 00:46 antarmuka
Menampilkan semua list isi direktori yang telah dipindahkan
0 komentar:
Posting Komentar