0% found this document useful (0 votes)
310 views3 pages

Perintah Dasar Di Ubuntu

This document provides an overview of common Linux commands and their usage, including: 1) Basic commands like su, sudo, ls, cd, apt-get, clear, and exit for navigating the system, installing software, and managing permissions. 2) Package management commands like apt-get install, apt-get remove, and apt-get update for installing, uninstalling, and updating packages. 3) File management commands like cp, mv, mkdir, rm, cat, more, and less for copying, moving, deleting, creating directories and viewing file contents. 4) System information commands like ifconfig, hostname, uptime, free, and top for viewing network settings,

Uploaded by

Rico Ricardo
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
310 views3 pages

Perintah Dasar Di Ubuntu

This document provides an overview of common Linux commands and their usage, including: 1) Basic commands like su, sudo, ls, cd, apt-get, clear, and exit for navigating the system, installing software, and managing permissions. 2) Package management commands like apt-get install, apt-get remove, and apt-get update for installing, uninstalling, and updating packages. 3) File management commands like cp, mv, mkdir, rm, cat, more, and less for copying, moving, deleting, creating directories and viewing file contents. 4) System information commands like ifconfig, hostname, uptime, free, and top for viewing network settings,

Uploaded by

Rico Ricardo
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Perintah dasar di Ubuntu.

Silahkan dihapal :-D

su : Super User rights from within the terminal


sudo : super user run this command

ls : list directory contents


ls -lis : list directory content is list view

cd : change directory
cd /dirname : jump change a directory

apt-get install : gets app from web and installs


apt-get remove : uninstalls app
apt-get remove --purge : removes a program and purges any configuration files
associated with it
apt-get update : updates the DB
sudo apt-get clean - Clear apt archives
sudo dpkg -i filename.deb - Install *.deb file
sudo apt-get build-dep program-name - Get dependencies for source packages
sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade - Get information
about broken packages when getting dependency problems

clear : clears screen


./filename : processes a install command
mkdir : creates a directory
chmod 777 dirname : resets access rights to directory
kill 999 : kills process at high level
reboot : reboots system
exit : exits from terminal or moves back a userlevel
make : comlies package code
make install : installs the compiled code
uname -r : gives you the kernel version

dir : will list all directories within your current location


cat filenamehere : will display it's contents
pwd : will show you your current location (very important if you're usincli ftp)
cp oldfilename newfilename : copies a file
mv oldfile newfile : will overwrite the oldfile with the newfile
chown usernamehere dirnamehere : changes the dir owner to whoever you put
chgrp groupnamehere dirnamehere : changes the group who owns the dir
pkill program-name : Kills a command
free -m - shows free space
cd ~ - go to home folder
cd .. - go to previous folder

tar -cvf file-or-folder - Make tar archive


tar -cvjf file-or-folder - Make tar.bz2 archive
tar -cvzf file-or-folder - Make tar.gz archive
tar -xvf file-or-folder - Untar tar archive
tar -xvjf file-or-folder - Untar tar.bz2 archive
tar -xvzf file-or-folder - Untar tar.gz archive

nano - Text editor


wget http://internet-address.com - Download manager
rm -r file-or-folder - Forcefully remove file/folder
ls --color=auto - List directory contents, colour-coded

Trivia

Kalau kita lupa saat menggunakan perintah di terminal, misalnya hendak mengetik gre....
(lupa lanjutannya) coba tekan TAB beberapa kali

ls            –> untuk melihat list direktori


ls -l         –> untuk melihat list direktori secara lengkap
ls -a        –> untuk melihat list direktory beserta file hidden-nya

pwd        –> melihat working direktori kita sekarang


cp            –> meng-copy file
contohnya: cp grub.cfg /boot/grub/

mv           –> memindahkan file atau merubah nama file


rm           –> menghapus file

mkdir      –> membuat direktori


rmdir       –> menghapus direktori

ps            –> melihat proses


free          –> melihat free memory
top           –> melihat task manager ala linux
vmstat    –> melihat proses yang sedang dikerjakan

df -h          –> melihat sisa kapasitas harddisk


du -h        –> melihat persentase pemakaian harddisk untuk file atau direktori
clear        –> membersihkan layar di terminal

hostname –> menampilkan nama komputer


who         –> melihat nama login kita

cat           –> membuka file (sekali lewat)


more       –> membuka isi file (per halaman)
less         –> membuka isi file (bisa scroll-up scroll-down)

info          –> berisi perintah-perintah di shell linux


man        –> melihat manual book dari perintah di linux

poweroff –> mematikan komputer


reboot     –> merestart komputer
uptime    –> melihat sudah berapa lama komputer dinyalakan

history    –> melihat perintah apa saja yang pernah diketik

date        –> melihat tanggal


cal           –> melihat kalender

ifconfig  –> melihat konfigurasi jaringan

Bila kita kurang mengerti dengan suatu perintah shell di linux kita dapat melihat
penjelasannya lebih rinci di perintah man (contoh: man du).
Ini jelas sekali berbeda dengan OS lain yang mengharuskan kita untuk melihat
keterangannya di website resminya atau mencari-cari di buku teks. Namun memang
sedikit kendala apabila bahasa inggris kita kurang lancar, tapi bila kita positive thinking
ini sama saja kita belajar linux sambil memperlancar inggris kita. Linux akan menjadikan
kita profesional IT yang handal di kemudian hari.

You might also like