29
Percobaan Pertama 1.1 ubuntu@ubuntu:~$ ls Desktop Documents Downloads Music Pictures Public Templates Videos 1.2 ubuntu@ubuntu:~$ ls -l total 0 drwxr-xr-x 2 ubuntu ubuntu 80 Sep 16 08:46 Desktop drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Documents drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Downloads drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Music drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Pictures drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Public drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Templates drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Videos 1.3 ubuntu@ubuntu:~$ ls -a . .bashrc Desktop .gconf Pictures Videos .. .cache .dmrc .ICEauthority .profile .Xaut hority .bash_history .config Documents .local Public .xsession-errors .bash_logout .dbus Downloads Music Templates 1.4

Percobaan Pertama 1.1 ubuntu@ubuntu:~$ ls Desktop Documents Downloads Music Pictures Public Templates Videos

  • Upload
    eepis

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Percobaan Pertama1.1ubuntu@ubuntu:~$ ls

Desktop Documents Downloads Music Pictures Public Templates Videos

1.2ubuntu@ubuntu:~$ ls -l

total 0

drwxr-xr-x 2 ubuntu ubuntu 80 Sep 16 08:46 Desktop

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Documents

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Downloads

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Music

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Pictures

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Public

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Templates

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Videos

1.3ubuntu@ubuntu:~$ ls -a

. .bashrc Desktop .gconf Pictures Videos

.. .cache .dmrc .ICEauthority .profile .Xauthority

.bash_history .config Documents .local Public .xsession-errors

.bash_logout .dbus Downloads Music Templates

1.4

ubuntu@ubuntu:~$ ls /usr

bin games include lib local sbin share src

1.5ubuntu@ubuntu:~$ ls /

bin boot cdrom dev etc home initrd.img initrd.img.old lib media mnt opt proc rofs root run sbin selinux srv sys tmp usr var vmlinuz vmlinuz.old

1.6ubuntu@ubuntu:~$ history

1 ls

2 -l

3 ls -l

4 ls -a

5 ls /usr

6 ls/

7 ls /

8 history

1.7ubuntu@ubuntu:~$ echo $HISTSIZE

1000

1.8ubuntu@ubuntu:~$ fc -l

1 ls

2 -l

3 ls -l

4 ls -a

5 ls /usr

6 ls/

7 ls /

8 history

9 echo $HISTSIZE

10 FC -L

1.9ubuntu@ubuntu:~$ fc -l 85 88

23 fc -l

ubuntu@ubuntu:~$ fc -l l f

19 ls /

20 history

21 echo $HISTIZE

22 echo $HISTSIZE

23 fc -l

24 fc -l 85 88

25 fc -l uname hostname

Percobaan Kedua2.1

ubuntu@ubuntu:~$ grep st /etc/passwd

list:x:38:38:Mailing List Manager:/var/list:/bin/sh

gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh

nobody:x:65534:65534:nobody:/nonexistent:/bin/sh

whoopsie:x:106:110::/nonexistent:/bin/false

hplip:x:114:7:HPLIP system user,,,:/var/run/hplip:/bin/false

2.2ubuntu@ubuntu:~$ cat > kelas1.txt

Badu

Zulkifli

Yudi

Ade

Anisa

ubuntu@ubuntu:~$ grep Yudi kelas1.txt

Yudi

2.3

ubuntu@ubuntu:~$ cat kelas1.txt kelas2.txt | sort

Ade

Anisa

Asep

Badu

Budi

Gama

Muklis

Yudi

Zulkifliubuntu@ubuntu:~$ who | cut -c1-8

ubuntu

ubuntu

ubuntu

ubuntu

ubuntu

ubuntu

ubuntu

ubuntu

2.4ubuntu@ubuntu:~$ cat kelas1.txt kelas2.txt > kelas.txt

ubuntu@ubuntu:~$ kelas.txt | sort | uniq

kelas.txt: command not found

Percobaan ketiga Pembuatab Bash Script

Cara 1 : menggunakan editor V.i3.1.1ubuntu@ubuntu:~$ vi p1.sh

3.1.2ubuntu@ubuntu:~$ ls -l p1.sh

-rw-rw-r-- 1 ubuntu ubuntu 27 Sep 16 09:29 p1.sh

ubuntu@ubuntu:~$ chmod +x p1.sh

ubuntu@ubuntu:~$ ls -l p1.sh

-rwxrwxr-x 1 ubuntu ubuntu 27 Sep 16 09:29 p1.sh

3.1.3ubuntu@ubuntu:~$ bash p1.sh

program bash script

ubuntu@ubuntu:~$ sh p1.sh

program bash script

ubuntu@ubuntu:~$ .p1.sh

.p1.sh: command not found

ubuntu@ubuntu:~$ ./p1.sh

program bash script

3.1.4ubuntu@ubuntu:~$ vi p2.sh

3.1.5ubuntu@ubuntu:~$ ./p1.sh ; ./p2.sh

program bash script

bash: ./p2.sh: Permission denied

3.1.6

Cara 2: menggunakan perintah cat3.2.1ubuntu@ubuntu:~$ cat >p3.sh

#ini adalah program script saya yang pertama

echo Contoh program script

echo ini adalah listing dari direktori

#memanggil perintah ls

ls -la

echo selesai

3.2.2

ubuntu@ubuntu:~$ chmod +x p3.sh

ubuntu@ubuntu:~$ ./p3.sh

Contoh program script

ini adalah listing dari direktori

total 84

drwxr-xr-x 15 ubuntu ubuntu 620 Sep 16 09:35 .

drwxr-xr-x 1 root root 60 Sep 16 08:46 ..

-rw------- 1 ubuntu ubuntu 751 Sep 16 09:41 .bash_history

-rw-r--r-- 1 ubuntu ubuntu 220 Sep 16 08:46 .bash_logout

-rw-r--r-- 1 ubuntu ubuntu 3637 Sep 16 08:46 .bashrc

drwx------ 12 ubuntu ubuntu 260 Sep 16 08:47 .cache

drwx------ 13 ubuntu ubuntu 320 Sep 16 08:47 .config

drwx------ 3 ubuntu ubuntu 60 Sep 16 08:46 .dbus

drwxr-xr-x 2 ubuntu ubuntu 80 Sep 16 08:46 Desktop

-rw-r--r-- 1 ubuntu ubuntu 25 Sep 16 08:46 .dmrc

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Documents

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Downloads

drwx------ 3 ubuntu ubuntu 60 Sep 16 08:47 .gconf

-rw------- 1 ubuntu ubuntu 318 Sep 16 08:46 .ICEauthority

-rw-rw-r-- 1 ubuntu ubuntu 28 Sep 16 09:09 kelas1.txt

-rw-rw-r-- 1 ubuntu ubuntu 22 Sep 16 09:11 kelas2.txt

-rw-rw-r-- 1 ubuntu ubuntu 50 Sep 16 09:40 kelas.txt

drwxr-xr-x 3 ubuntu ubuntu 60 Sep 16 08:46 .local

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Music

-rwxrwxr-x 1 ubuntu ubuntu 27 Sep 16 09:29 p1.sh

-rw------- 1 ubuntu ubuntu 12288 Sep 16 09:26 .p1.sh.swo

-rw------- 1 ubuntu ubuntu 12288 Sep 16 09:24 .p1.sh.swp

-rw-rw-r-- 1 ubuntu ubuntu 41 Sep 16 09:35 p2.sh

-rwxrwxr-x 1 ubuntu ubuntu 154 Sep 16 09:43 p3.sh

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Pictures

-rw-r--r-- 1 ubuntu ubuntu 675 Sep 16 08:46 .profile

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Public

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Templates

drwxr-xr-x 2 ubuntu ubuntu 40 Sep 16 08:46 Videos

-rw-rw-r-- 1 ubuntu ubuntu 51 Sep 16 08:46 .Xauthority

-rw------- 1 ubuntu ubuntu 4583 Sep 16 09:00 .xsession-errors

selesai

ubuntu@ubuntu:~$ ./p1.sh ; cat p3.sh

program bash script

#ini adalah program script saya yang pertama

echo Contoh program script

echo ini adalah listing dari direktori

#memanggil perintah ls

ls -la

echo selesai

Percobaan KeempatJob Control

4.1 PID TTY STAT TIME COMMAND

2349 tty6 S+ 0:00 -bash

2350 tty4 S+ 0:00 -bash

2351 tty5 S+ 0:00 -bash

2352 tty3 S+ 0:00 -bash

2353 tty2 S+ 0:00 -bash

2954 tty1 S+ 0:00 -bash

3081 ? Ssl 0:00 gnome-session --session=ubuntu

3126 ? Ss 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch--exit-with-s

3129 ? S 0:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/im-

3130 ? Ss 0:00 //bin/dbus-daemon --fork --print-pid 5 --print-addres

3140 ? Sl 0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher

3144 ? S 0:00 /bin/dbus-daemon --config-file=/etc/at-spi2/accessibi

3147 ? Sl 0:00 /usr/lib/at-spi2-core/at-spi2-registryd--use-gnome-s

3160 ? Sl 0:00 /usr/lib/dconf/dconf-service

3172 ? S 0:00 /usr/lib/i386-linux-gnu/gconf/gconfd-2

3187 ? Sl 0:01 /usr/lib/gnome-settings-daemon/gnome-settings-daemon

3198 ? Sl 0:00 /usr/bin/gnome-keyring-daemon --start --components=pk

3208 ? S<l 0:00 /usr/bin/pulseaudio --start --log-target=syslog

3261 ? Sl 0:00 /usr/lib/gvfs/gvfsd

3347 ? Sl 0:00 /usr/lib/gvfs//gvfsd-fuse -f /run/user/ubuntu/gvfs

3365 ? Sl 1:15 compiz

3379 ? Sl 0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-h

3380 ? Sl 0:00 /usr/lib/policykit-1-gnome/polkit-gnome-authenticatio

3381 ? Sl 0:02 nautilus -n

3385 ? Sl 0:00 nm-applet

3390 ? Sl 0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor

3405 ? Sl 0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor

3409 ? Sl 0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor

3414 ? Sl 0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor

3430 ? Sl 0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.21 /org/gtk/gv

3437 ? Sl 0:01 /usr/lib/i386-linux-gnu/bamf/bamfdaemon

3445 ? Sl 0:00 /usr/lib/gvfs/gvfsd-metadata

3448 ? Sl 0:00 /usr/lib/i386-linux-gnu/notify-osd

3456 ? Sl 0:00 /usr/bin/gnome-screensaver --no-daemon

3459 ? Ss 0:00 /bin/sh -c /usr/bin/gtk-window-decorator

3460 ? Sl 0:00 /usr/bin/gtk-window-decorator

3462 ? Sl 0:00 /usr/lib/gvfs/gvfsd-burn --spawner :1.21 /org/gtk/gvf

3467 ? Sl 0:01 /usr/lib/unity/unity-panel-service

3469 ? Sl 0:00 /usr/lib/i386-linux-gnu/hud/hud-service

3491 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-application-service

3493 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-bluetooth/indicator

3495 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-datetime-service

3497 ? Sl 0:00 /usr/lib/indicator-messages/indicator-messages-servic

3499 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-printers-service

3501 ? Sl 0:00 /usr/lib/indicator-session/indicator-session-service

3504 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-sync/indicator-sync

3505 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-sound-service

3529 ? Sl 0:00 /usr/lib/evolution/evolution-source-registry

3556 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-applications/unity

3558 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-files/unity-files-

3560 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-friends

3562 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-music/unity-music-

3564 ? Sl 0:00 /usr/bin/python3 /usr/lib/unity-lens-photos/unity-len

3566 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-shopping/unity-sho

3568 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-video/unity-video-

3609 ? Sl 0:00 /usr/bin/zeitgeist-daemon

3625 ? Sl 0:00 /usr/lib/zeitgeist/zeitgeist-fts

3626 ? Sl 0:00 zeitgeist-datahub

3630 ? S 0:00 sh -c /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsetti

3631 ? Sl 0:00 /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsettings or

3641 ? S 0:00 /bin/cat

3649 ? S 0:00 sh -c /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsetti

3650 ? Sl 0:00 /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsettings or

3657 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-music/unity-musics

3659 ? Sl 0:00 /usr/bin/python3 /usr/lib/unity-lens-files/unity-scop

3661 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-video/unity-scope-

3672 ? S 0:00 sh -c /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsetti

3673 ? Sl 0:00 /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsettings or

3686 ? Sl 0:00 telepathy-indicator

3693 ? Sl 0:00 /usr/lib/telepathy/mission-control-5

3718 ? Sl 0:00 /usr/bin/python /usr/lib/ubuntuone-client/ubuntuone-l

3729 ? S 0:00 /usr/bin/python /usr/lib/ubuntu-sso-client/ubuntu-sso

3739 ? Sl 0:00 /usr/lib/libreoffice/program/oosplash

--writer

3767 ? Sl 0:00 update-notifier

3776 ? Sl 0:16 /usr/lib/libreoffice/program/soffice.bin --writer --s

3890 ? Sl 0:00 /usr/lib/i386-linux-gnu/deja-dup/deja-dup-monitor

4500 ? Sl 0:01 gnome-terminal

4506 ? S 0:00 gnome-pty-helper

4577 pts/2 Ss 0:00 bash

4652 pts/2 R+ 0:00 ps x

4.2ubuntu@ubuntu:~$ ps x >hasil

ubuntu@ubuntu:~$ cat hasil

PID TTY STAT TIME COMMAND

2349 tty6 S+ 0:00 -bash

2350 tty4 S+ 0:00 -bash

2351 tty5 S+ 0:00 -bash

2352 tty3 S+ 0:00 -bash

2353 tty2 S+ 0:00 -bash

2954 tty1 S+ 0:00 -bash

3081 ? Ssl 0:00 gnome-session --session=ubuntu

3126 ? Ss 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch--exit-with-session /usr/bin/im-launch gnome-session --session=ubuntu

3129 ? S 0:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch gnome-session --session=ubuntu

3130 ? Ss 0:00 //bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session

3140 ? Sl 0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher

3144 ? S 0:00 /bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3

3147 ? Sl 0:00 /usr/lib/at-spi2-core/at-spi2-registryd--use-gnome-session

3160 ? Sl 0:00 /usr/lib/dconf/dconf-service

3172 ? S 0:00 /usr/lib/i386-linux-gnu/gconf/gconfd-2

3187 ? Sl 0:01 /usr/lib/gnome-settings-daemon/gnome-settings-daemon

3198 ? Sl 0:00 /usr/bin/gnome-keyring-daemon --start --components=pkcs11

3208 ? S<l 0:00 /usr/bin/pulseaudio --start --log-target=syslog

3261 ? Sl 0:00 /usr/lib/gvfs/gvfsd

3347 ? Sl 0:00 /usr/lib/gvfs//gvfsd-fuse -f /run/user/ubuntu/gvfs

3365 ? Sl 1:16 compiz

3379 ? Sl 0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper

3380 ? Sl 0:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1

3381 ? Sl 0:02 nautilus -n

3385 ? Sl 0:00 nm-applet

3390 ? Sl 0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor

3405 ? Sl 0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor

3409 ? Sl 0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor

3414 ? Sl 0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor

3430 ? Sl 0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.21 /org/gtk/gvfs/exec_spaw/0

3437 ? Sl 0:01 /usr/lib/i386-linux-gnu/bamf/bamfdaemon

3445 ? Sl 0:00 /usr/lib/gvfs/gvfsd-metadata

3448 ? Sl 0:00 /usr/lib/i386-linux-gnu/notify-osd

3456 ? Sl 0:00 /usr/bin/gnome-screensaver --no-daemon

3459 ? Ss 0:00 /bin/sh -c /usr/bin/gtk-window-decorator

3460 ? Sl 0:00 /usr/bin/gtk-window-decorator

3462 ? Sl 0:00 /usr/lib/gvfs/gvfsd-burn --spawner :1.21 /org/gtk/gvfs/exec_spaw/1

3467 ? Sl 0:01 /usr/lib/unity/unity-panel-service

3469 ? Sl 0:00 /usr/lib/i386-linux-gnu/hud/hud-service

3491 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-application-service

3493 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-bluetooth/indicator-bluetooth-service

3495 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-datetime-service

3497 ? Sl 0:00 /usr/lib/indicator-messages/indicator-messages-service

3499 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-printers-service

3501 ? Sl 0:00 /usr/lib/indicator-session/indicator-session-service

3504 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-sync/indicator-sync-service

3505 ? Sl 0:00 /usr/lib/i386-linux-gnu/indicator-sound-service

3529 ? Sl 0:00 /usr/lib/evolution/evolution-source-registry

3556 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-applications/unity-applications-daemon

3558 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-files/unity-files-daemon

3560 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-friends

3562 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-music/unity-music-daemon

3564 ? Sl 0:00 /usr/bin/python3 /usr/lib/unity-lens-photos/unity-lens-photos

3566 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-shopping/unity-shopping-daemon

3568 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-video/unity-video-lens-daemon

3609 ? Sl 0:00 /usr/bin/zeitgeist-daemon

3625 ? Sl 0:00 /usr/lib/zeitgeist/zeitgeist-fts

3626 ? Sl 0:00 zeitgeist-datahub

3630 ? S 0:00 sh -c /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsettings org.gnome.system.proxy org.gnome.system.proxy.http org.gnome.system.proxy.https org.gnome.system.proxy.ftp org.gnome.system.proxy.socks

3631 ? Sl 0:00 /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsettings org.gnome.system.proxy org.gnome.system.proxy.http org.gnome.system.proxy.https org.gnome.system.proxy.ftp org.gnome.system.proxy.socks

3641 ? S 0:00 /bin/cat

3649 ? S 0:00 sh -c /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsettings org.gnome.system.proxy org.gnome.system.proxy.http org.gnome.system.proxy.https org.gnome.system.proxy.ftp org.gnome.system.proxy.socks

3650 ? Sl 0:00 /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsettings org.gnome.system.proxy org.gnome.system.proxy.http org.gnome.system.proxy.https org.gnome.system.proxy.ftp org.gnome.system.proxy.socks

3657 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-music/unity-musicstore-daemon

3659 ? Sl 0:00 /usr/bin/python3 /usr/lib/unity-lens-files/unity-scope-gdrive

3661 ? Sl 0:00 /usr/lib/i386-linux-gnu/unity-lens-video/unity-scope-video-remote

3672 ? S 0:00 sh -c /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsettings org.gnome.system.proxy org.gnome.system.proxy.http org.gnome.system.proxy.https org.gnome.system.proxy.ftp org.gnome.system.proxy.socks

3673 ? Sl 0:00 /usr/lib/i386-linux-gnu/libproxy/0.4.7/pxgsettings

org.gnome.system.proxy org.gnome.system.proxy.http org.gnome.system.proxy.https org.gnome.system.proxy.ftp org.gnome.system.proxy.socks

3686 ? Sl 0:00 telepathy-indicator

3693 ? Sl 0:00 /usr/lib/telepathy/mission-control-5

3718 ? Sl 0:00 /usr/bin/python /usr/lib/ubuntuone-client/ubuntuone-login

3729 ? S 0:00 /usr/bin/python /usr/lib/ubuntu-sso-client/ubuntu-sso-login

3739 ? Sl 0:00 /usr/lib/libreoffice/program/oosplash --writer

3767 ? Sl 0:00 update-notifier

3776 ? Sl 0:16 /usr/lib/libreoffice/program/soffice.bin --writer --splash-pipe=6

3890 ? Sl 0:00 /usr/lib/i386-linux-gnu/deja-dup/deja-dup-monitor

4500 ? Sl 0:01 gnome-terminal

4506 ? S 0:00 gnome-pty-helper

4577 pts/2 Ss 0:00 bash

4653 pts/2 R+ 0:00 ps x

4.3ubuntu@ubuntu:~$ jobs

4.4ubuntu@ubuntu:~$ vi ploop.sh

4.5

ubuntu@ubuntu:~$ chmod +x ploop.sh

ubuntu@ubuntu:~$ ./ploop.sh

hallo

hallo

hallo

hallo

4.6ubuntu@ubuntu:~$ ./ploop.sh &

[1] 4737

ubuntu@ubuntu:~$ hallo

hallo

hallo

^C

4.7ubuntu@ubuntu:~$ jobs

4.8ubuntu@ubuntu:~$ fg %1

bash: fg: %1: no such job

4.9ubuntu@ubuntu:~$ bg

bash: bg: current: no such job

ubuntu@ubuntu:~$ jobs

Percobaan Kelima

5.1alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

alias egrep='egrep --color=auto'

alias fgrep='fgrep --color=auto'

alias grep='grep --color=auto'

alias l='ls -CF'

alias la='ls -A'

alias ll='ls -alF'

alias ls='ls –color=auto'

5.2ubuntu@ubuntu:~$ alias del= 'rm -i'

bash: alias: rm -i: not found

ubuntu@ubuntu:~$ alias h='history'

5.3ubuntu@ubuntu:~$ ls

Desktop hasil kelas.txt p1.sh Pictures Templates

Documents kelas1.txt latihan-1 p2.sh ploop.sh Videos

Downloads kelas2.txt Music p3.sh Public

ubuntu@ubuntu:~$ del hasil

No command 'del' found, did you mean:

Command 'el' from package 'oneliner-el' (universe)

Command 'bel' from package 'belier' (universe)

Command 'deal' from package 'deal' (universe)

Command 'hdel' from package 'hfsutils' (main)

Command 'wdel' from package 'wput' (universe)

Command 'delp' from package 'fp-utils-2.6.0' (universe)

Command 'qdel' from package 'torque-client' (universe)

Command 'qdel' from package 'slurm-llnl-torque' (universe)

Command 'qdel' from package 'gridengine-client' (universe)

Command 'qdel' from package 'torque-client-x11' (universe)

Command 'tel' from package 'orville-write' (universe)

Command 'mdel' from package 'mtools' (main)

del: command not found

ubuntu@ubuntu:~$ h | more

1 ls

2 -l

3 ls -l

4 ls -a

5 ls /usr

6 ls/

7 ls /

8 history

9 echo $HISTSIZE

10 FC -L

11 fc -l

12 fc -l 25 27

13 fc -l 85 88

14 ~$ ls

15 ls

16 ls -l

17 ls -a

18 ls /usr

19 ls /

20 history

21 echo $HISTIZE

22 echo $HISTSIZE

23 fc -l

24 fc -l 85 88

25 fc -l uname hostname

26 fc -l l f

27 grep st /etc/passwd

28 cat > kelas1.txt

29 grep Yudi kelas1.txt

30 cat > kelas2.txt

31 cat kelas1.txt kelas2.txt | sort

32 who | cut -cl-8

33 who | cut -c1-8

34 cat kelas1.txt kelas2.txt > kelas.txt

35 kelas.txt | sort | uniq

36 cat > kelas.txt

37 cat kelas1.txt kelas2.txt > kelas.txt

38 kelas.txt | sort | uniq

39 vi p1.sh

40 vi p1.sh

41 ls -l p1.sh

42 p1.sh

43 vi p1.sh

44 cat >p3.sh

45 vi p1.sh

46 ls -l p1.sh

47 chmod +x p1.sh

48 ls -l p1.sh

49 bash p1.sh

50 sh p1.sh

51 .p1.sh

52 ./p1.sh

53 vi p2.sh

54 ./p1.sh ; ./p2.sh

55 ./p1.sh &

56 .p1.sh &

57 .p2.sh &

58 cat kelas1.txt kelas2.txt > kelas.txt

59 kelas.txt | sort | uniq

60 cat >p3.sh

61 chmod +x p3.sh

62 ./p3.sh

63 ./p1.sh ; cat p3.sh

64 ps x

65 ps x >hasil

66 cat hasil

67 jobs

68 vi ploop.sh

69 chmod +x ploop.sh

70 ./ploop.sh

71 ./ploop.sh &

72 jobs

73 fg %1

74 bg

75 jobs

76 bg

77 jobs

78 vi latihan-1

79 alias

80 alias del= 'rm -i'

81 alias h='history'

82 cat > kelas1.txt

83 grep Yudi kelas1.txt

84 cat > kelas2.txt

85 cat kelas1.txt kelas2.txt | sort

86 who | cut -c1-8

87 cat kelas1.txt kelas2.txt > kelas.txt

88 kelas.txt | sort | uniq

89 alias del= 'rm -i'

90 alias h='history'

91 ls

92 del

93 ls

94 del hasil

95 h | more

5.4ubuntu@ubuntu:~$ unalias del

bash: unalias: del: not found

ubuntu@ubuntu:~$ del file

No command 'del' found, did you mean:

Command 'bel' from package 'belier' (universe)

Command 'el' from package 'oneliner-el' (universe)

Command 'mdel' from package 'mtools' (main)

Command 'hdel' from package 'hfsutils' (main)

Command 'wdel' from package 'wput' (universe)

Command 'deal' from package 'deal' (universe)

Command 'delp' from package 'fp-utils-2.6.0' (universe)

Command 'qdel' from package 'torque-client' (universe)

Command 'qdel' from package 'torque-client-x11' (universe)

Command 'qdel' from package 'gridengine-client' (universe)

Command 'qdel' from package 'slurm-llnl-torque' (universe)

Command 'tel' from package 'orville-write' (universe)

del: command not found

Percobaan keenam6.1

latihan 1

1.a. ubuntu@ubuntu:~$ vi prog1.sh

b.ubuntu@ubuntu:~$ cat >prog1a.sh

selamat datang

di laboratorium komputer

jurusan teknik telekomunikasi PENS

c.ubuntu@ubuntu:~$ chmod +x prog1a.sh

ubuntu@ubuntu:~$ ./prog1a.sh

./prog1a.sh: line 1: selamat: command not found

./prog1a.sh: line 2: di: command not found

./prog1a.sh: line 3: jurusan: command not found

ubuntu@ubuntu:~$ ./prog1.sh ; cat prog1a.sh

bash: ./prog1.sh: Permission denied

selamat datang

di laboratorium komputer

jurusan teknik telekomunikasi PENS

2. ubuntu@ubuntu:~$ grep laboratorium prog1.sh

di laboratorium komputer

ubuntu@ubuntu:~$ grep laboratorium prog1a.sh

di laboratorium komputer

3.ubuntu@ubuntu:~$ echo $HISTSIZE

1000

4.