SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Panduan Perintah Dasar Linux
Linux terinspirasi oleh sistem operasi Unix yang pertama kali muncul pada tahun 1969, dan terus
digunakan dan dikembangkan sejak itu. Banyak dari konvensi desain untuk Unix juga terdapat
pada Linux, dan bagian penting untuk memahami dasar-dasar dari sistem Linux.
Orientasi utama dari Unix adalah penggunaan antarmuka baris perintah, dan warisan ini ikut
terbawa ke Linux. Jadi antarmuka pengguna berbasis grafik dengan jendela, ikon dan menunya
dibangun di atas dasar antarmuka baris perintah. Lagipula, hal ini berarti bahwa sistem berkas
Linux tersusun agar dapat dengan mudah dikelola dan diakses melalui baris perintah.
Sumber Belajar Perintah Dasar
1. Pertama – halaman manual perintah.
o man <perintah> : menampilkan semua informasi tentang perintah.
o <perintah> help : menampilkan opsi yang tersedia dari sebuah perintah.
2. Kedua – Buku dan Internet.
Perintah Penanganan File
mkdir - membuat direktori.
sintaks :
mkdir [OPTION] DIRECTORY...
contoh :
$ mkdir data
ls - menampilkan isi dari direktori.
sintaks :
ls [OPTION]... [FILE]...
contoh :
$ ls -ls
cd - berpindah direktori.
sintaks :
cd [DIRECTORY]
contoh :
$ cd data
pwd - menampilkan tempat direktori yang sedang dikerjakan.
sintaks :
$ pwd
cp - mengcopy file dan direktori.
sintaks :
cp [OPTION]... SOURCE DEST
contoh :
$ cp sample.txt sample_copy.txt
$ cp sample_copy.txt target_dir
mv - memindahkan atau merubah nama file.
sintaks :
mv [OPTION]... SOURCE DEST
contoh :
$ mv source.txt target_dir
$ mv old.txt new.txt
rm - menghapus file atau direktori.
sintaks :
rm [OPTION]... FILE...
contoh :
$ rm file1.txt , rm rf some_dir
find - mencari file dalam sebuah direktori.
sintaks :
find [OPTION] [path] [pattern]
contoh :
$ find file1.txt, find name file1.txt
touch - Update waktu akses dan modifikasi setiap BERKAS ke waktu sekarang. Argumen FILE
yang tidak ada menjadi ada kosong.
sintaks:
touch [OPTION]... FILE...
contoh :
$ touch done
file - menentukan jenis file.
sintaks:
file [OPTION...] [FILE...]
contoh :
$ file ubuntu-desktop.pdf
locate - menemukan atau mencari file.
sintaks :
locate [OPTION]... FILE...
contoh :
$ locate file1.txt
whereis - locate the binary, source, and manual page files for a command.
sintaks :
whereis [-bmsu] [-BMS directory... -f] filename...
contoh :
$ whereis ssh
Pola
Pola adalah ungkapan yang menggambarkan satu set string yang digunakan untuk memberikan
gambaran ringkas dari sebuah himpunan, tanpa harus daftar semua elemen. contoh : ab*cd cocok
apa pun yang dimulai dengan ab dan diakhiri dengan cd dll.
$ ls *.txt
artinya mencetak semua file yang berekstensi .txt (file teks)
Pemrosesan Teks
cat - menggabungkan file dan cetak pada keluaran standar.
sintaks :
cat [OPTION] [FILE]...
contoh :
$ cat avatar.avi.001 avatar.avi.002 > avatar.avi
$ cat readme.txt
echo - menampilkan baris teks.
sintaks :
echo [OPTION] [string] ...
contoh :
$ echo I love Indonesia
$ echo $HOME
grep - mencetak baris yang cocok dengan pola.
sintaks :
grep [OPTION] PATTERN [FILE]...
contoh :
$ grep i apple sample.txt
wc - mencetak jumlah baris, kata, dan byte di file.
sintaks :
wc [OPTION]... [FILE]...
contoh :
$ wc file1.txt
sort - mengurutkan file teks baris.
sintaks :
sort [OPTION]... [FILE]...
contoh :
$ sort file1.txt
md5sum - compute and check MD5 message digest.
sintaks :
md5sum [OPTION]... [FILE]...
contoh :
$ md5sum LinuxMint-5-Fluxbox.iso > md5sums
$ md5sum -c md5sums
Linux File Permissions
3 jenis file permission – read, write, execute 10 bit format dari perintah 'ls -l' 1 2 3 4 5 6 7 8 9 10
file type owner group others contoh : drwxrwr owner berarti memiliki semua tiga hak akses,
group mempunyai izin membaca dan menulis, others hanya mempunyai izin membaca. read - 4,
write - 2, execute - 1 contoh :
rwxrwr = 764
Sistem Administrasi
chmod - mengubah hak akses file.
sintaks :
chmod [OPTION] [MODE] [FILE]
contoh :
$ chmod 744 calculate.sh
chown - mengubah pemilik file dan group.
sintaks :
chown [OPTION]... OWNER[:[GROUP]] FILE...
contoh :
$ chown ugos myfile.txt
su - mengubah user ID atau menjadi super-user.
sintaks :
su [OPTION] [LOGIN]
contoh :
$ su ugos
$ su
passwd - update token otentikasi pengguna.
sintaks :
passwd [options] [LOGIN]
contoh :
$ passwd ugos
who - menunjukkan siapa yang login.
sintaks :
who [OPTION]
contoh :
$ who
Managemen Proses
ps - laporan snapshot dari proses saat ini.
sintaks :
ps [OPTION]
contoh :
$ ps ax
kill - untuk membunuh proses (menggunakan mekanisme sinyal).
sintaks :
kill [OPTION] pid
contoh :
$ kill 9 2275
lsusb - daftar perangkat USB.
sintaks :
$ lsusb
jobs - menampilkan nama dan id latar belakang pekerjaan.
sintaks :
$ jobs
top - tampilan tugas Linux.
sintaks :
top -hv | -bcisSH -d delay -n iterations [-u user | -U user] -p pid
[,pid ...]
contoh :
$ top
clear - menghapus layar terminal.
sintaks :
$ clear
free - menampilkan jumlah memori yang bebas dan digunakan dalam sistem.
sintaks :
free [-b | -k | -m | -g] [-o] [-s delay ] [-t] [-V]
contoh :
$ free -m
Arsip
tar - ke arsip file.
sintaks :
tar [OPTION] DEST SOURCE
contoh :
$ tar cvf original.tar original/
$ tar -cpvf original.tar.gz original/
$ tar xvf original.tar
$ tar xjvf original.tar.bz2
$ tar --lzma -xvf original.tar.lzma
bzip2 - kompresor blok-menyortir file.
sintaks :
bzip2 [OPTION] FILE...
contoh :
$ bzip2 original.mp3
$ bzip2 -d original.mp3.bz2
zip - paket dan kompres (arsip) file.
sintaks :
zip [OPTION] DEST SOURCE
contoh :
$ zip -r original.zip original/
rar - arsip file dengan kompresi.
sintaks :
rar <command> [-<switch 1> -<switch N>] archive [files...]
contoh :
$ rar original.rar original
unzip - daftar, test dan ekstrak file yang dikompresi dalam sebuah ZIP archive.
sintaks :
unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
contoh :
$ unzip original.zip
unrar - daftar, test dan ekstrak file yang dikompresi dalam sebuah RAR archive.
sintaks :
unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract>
contoh :
$ unrar -x original.rar
7z - Sebuah pengarsipan file dengan rasio kompresi tertinggi.
sintaks :
7z <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
contoh :
$ 7z e original.7z
Jaringan
ssh - SSH client (remote login program) “ssh adalah program untuk login ke mesin remote dan
untuk mengeksekusi perintah pada mesin remote”.
sintaks :
ssh [options] [user]@hostname
contoh :
$ ssh -l guest 10.105.11.20
scp - secure copy (copy file program remote) “scp salinan file antara host pada jaringan”.
sintaks :
scp [options] [[user]@host1:file1] [[user]@host2:file2]
contoh :
$ scp file1.txt guest@ip_address:~/
ifconfig - mengkonfigurasi perangkat jaringan.
sintaks :
ifconfig [-a] [-v] [-s] <interface> [[<AF>] <address>]
contoh :
$ ifconfig
iwconfig - mengkonfigurasi perangkat jaringan nirkabel.
sintaks :
iwconfig [interface]
contoh :
$ iwconfig
wget - Downloader non-interaktif jaringan.
sintaks :
wget [option]... [URL]...
contoh :
$ wget -c http://repo.ugm.ac.id/iso/ubuntu/10.04/ubuntu-10.04-netbook-
i386.iso
netstat - Cetak koneksi jaringan, tabel routing, statistik interface, koneksi masquerade, dan
keanggotaan multicast.
sintaks :
netstat [-vWeenNcCF] [<Af>] -r
contoh :
$ netstat
mtr - tool diagnostik jaringan.
sintaks :
mtr [-hvrwctglspniu46] [--help] [--version] [--report]
contoh :
$ mtr google.co.id
iftop - menampilkan penggunaan bandwidth pada sebuah perangkat ethernet oleh host.
sintaks :
iftop -h | [-nNpbBP] [-i interface] [-f filter code] [-F net/mask]
contoh :
# iftop -i eth0
File Systems
fdisk - partisi manipulator.
sintaks :
fdisk [options] <disk>
contoh :
# fdisk l
mount - mount file system.
sintaks :
mount t type device dir
contoh :
# mount /dev/sda5 /media/target
umount - unmount file system.
sintaks :
umount [OPTIONS] dir | device...
contoh :
# umount /media/target
du - estimasi sintaks kapasitas file.
sintaks :
du [OPTION]... [FILE]...
contoh :
$ du -h
df - diskfile, laporan sintaks kapasitas hardisk.
sintaks :
df [OPTION]... [FILE]...
contoh :
$ df -h
eject - eject removable media
sintaks :
eject [OPTION]
contoh :
$ eject
$ eject -t
Editor perintah
nano - Nano, editor lainnya, yang bebas disempurnakan Pico clone.
sintaks:
nano [OPTIONS] [[+LINE,COLUMN] FILE]..
contoh :
$ nano readme.txt
pico - sebuah program editor teks yang ditingkatkan.
sintaks:
pico [OPTIONS] [[+LINE,COLUMN] FILE]..
contoh :
$ pico readme.txt
vi - program text editor.
sintaks :
vi [OPTION] [file]...
contoh :
$ vi hello.c
vim - Vi Improved, program text editor.
sintaks :
vim [OPTION] [file]...
contoh :
$ vim hello.c
Perintah Advanced
reboot - reboot sistem.
sintaks :
reboot [OPTION]
contoh :
# reboot
halt - shutdown komputer.
sintaks :
# halt
shutdown - shutdown komputer.
sintaks :
shutdown [OPTION]
contoh :
# shutdown -h now
sed - stream editor untuk penyaringan dan mengubah teks.
sintaks :
sed [OPTION] [inputfile]...
contoh :
$ sed 's/love/hate/g' loveletter.txt
awk - pola scanning dan pengolahan bahasa.
contoh :
$ awk F: '{ print $1 }' sample_awk.txt
watch - menjalankan program secara berkala, menunjukkan output fullscreen.
sintaks :
watch [OPTION] <command>
contoh :
$ watch lsusb
alias - membuat alias dari sebuah perintah.
sintaks:
alias [name[=value] ... ]
contoh :
$ alias dir='ls -l'
screen - layar manajer dengan emulasi terminal VT100/ANSI.
sintaks :
screen [-opts] [cmd [args]]
contoh :
$ screen -S ugos
lshw - list hardware.
sintaks :
lshw [-format] [-options ...]
contoh :
$ lshw -C network
dmidecode - DMI table decoder
sintaks :
dmidecode [OPTIONS]
contoh :
# dmidecode --type memory
uptime - menampilkan berapa lama sistem telah berjalan.
sintaks :
$ uptime
split - membagi file menjadi potongan-potongan.
sintaks :
split [OPTION]... [INPUT [PREFIX]]
contoh :
$ split -b 200MB avatar.avi avatar.avi.
espeak - Sebuah perangkat lunak multi-lingual speech synthesizer.
sintaks :
espeak [options] [<words>]
contoh :
$ espeak -s 80 "Linux"
aplay - command-line perekam suara dan pemutar untuk driver soundcard ALSA.
sintaks :
aplay [OPTION]... [FILE]...
contoh :
$ aplay -l
$ aplay donw.wav
arecord - command-line perekam suara untuk driver soundcard ALSA.
sintaks :
arecord [OPTION]... [FILE]...
contoh :
$ arecord -f cd -t raw | lame -x -r – out.mp3
lsb_release - cetak distribusi informasi spesifik.
sintaks :
lsb_release [options]
contoh :
$ lsb_release -a
cal - menampilkan sebuah kalender.
sintaks :
cal [-hjy] [[month] year]
contoh :
$ cal 4 2011
date - mencetak atau mengatur tanggal dan waktu sistem.
sintaks :
date [OPTION]... [+FORMAT]
contoh :
# date 041520152011
artinya Apr 15 8:15 2011
history - menampilkan perintah-perintah yang sudah digunakan.
sintaks :
$ history
bc - kalkulator.
sintaks :
bc [ -hlwsqv ] [long-options] [ file ... ]
contoh :
$ bc

Weitere ähnliche Inhalte

Kürzlich hochgeladen

TEMPLATE CONTOH PENULISAN KERTAS CADANGAN KAJIAN TINDAKAN.pdf
TEMPLATE CONTOH PENULISAN KERTAS CADANGAN KAJIAN TINDAKAN.pdfTEMPLATE CONTOH PENULISAN KERTAS CADANGAN KAJIAN TINDAKAN.pdf
TEMPLATE CONTOH PENULISAN KERTAS CADANGAN KAJIAN TINDAKAN.pdfcrvwr4zf9r
 
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...NursKitchen
 
PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf
PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdfPENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf
PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf1370zulaikha
 
Slide sejarah tingkatan5 bab5 nota ringkas
Slide sejarah tingkatan5 bab5 nota ringkasSlide sejarah tingkatan5 bab5 nota ringkas
Slide sejarah tingkatan5 bab5 nota ringkasAdiebsulhy55
 
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genap
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genapKISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genap
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genapDewiUmbar
 
Buku Program Pelancaran Nilam SMK Johor Bahru.pptx
Buku Program Pelancaran Nilam SMK Johor Bahru.pptxBuku Program Pelancaran Nilam SMK Johor Bahru.pptx
Buku Program Pelancaran Nilam SMK Johor Bahru.pptxHussalwaHussain1
 
Bab 5 Ting 4 5.2 Persekutuan Tanah Melayu
Bab 5 Ting 4  5.2 Persekutuan Tanah MelayuBab 5 Ting 4  5.2 Persekutuan Tanah Melayu
Bab 5 Ting 4 5.2 Persekutuan Tanah MelayuSITINURULSYARAFINABI
 
Pertemuan 9 dan 10 - Sistem Persamaan Linear.ppt
Pertemuan 9 dan 10 - Sistem Persamaan Linear.pptPertemuan 9 dan 10 - Sistem Persamaan Linear.ppt
Pertemuan 9 dan 10 - Sistem Persamaan Linear.pptArieAdie
 
Bab 5 Ting 4 5.1 Ciri ciri Persekutuan Tanah Melayu
Bab 5 Ting 4  5.1 Ciri ciri Persekutuan Tanah MelayuBab 5 Ting 4  5.1 Ciri ciri Persekutuan Tanah Melayu
Bab 5 Ting 4 5.1 Ciri ciri Persekutuan Tanah MelayuSITINURULSYARAFINABI
 
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdf
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdfTopik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdf
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdfNursKitchen
 
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...MDFARIDSHAFARIBINHAR
 
PROGRAM PENINGKATAN AKADEMIK PANITIA SEJARAH BAGI MURID.docx
PROGRAM PENINGKATAN AKADEMIK PANITIA SEJARAH BAGI MURID.docxPROGRAM PENINGKATAN AKADEMIK PANITIA SEJARAH BAGI MURID.docx
PROGRAM PENINGKATAN AKADEMIK PANITIA SEJARAH BAGI MURID.docxssuser2936b51
 
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdf
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdfReka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdf
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdfMDFARIDSHAFARIBINHAR
 
Reka Bentuk Teknologi Nota Tingkatan satu1
Reka Bentuk  Teknologi Nota Tingkatan satu1Reka Bentuk  Teknologi Nota Tingkatan satu1
Reka Bentuk Teknologi Nota Tingkatan satu1MDFARIDSHAFARIBINHAR
 

Kürzlich hochgeladen (14)

TEMPLATE CONTOH PENULISAN KERTAS CADANGAN KAJIAN TINDAKAN.pdf
TEMPLATE CONTOH PENULISAN KERTAS CADANGAN KAJIAN TINDAKAN.pdfTEMPLATE CONTOH PENULISAN KERTAS CADANGAN KAJIAN TINDAKAN.pdf
TEMPLATE CONTOH PENULISAN KERTAS CADANGAN KAJIAN TINDAKAN.pdf
 
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...
 
PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf
PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdfPENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf
PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf
 
Slide sejarah tingkatan5 bab5 nota ringkas
Slide sejarah tingkatan5 bab5 nota ringkasSlide sejarah tingkatan5 bab5 nota ringkas
Slide sejarah tingkatan5 bab5 nota ringkas
 
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genap
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genapKISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genap
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genap
 
Buku Program Pelancaran Nilam SMK Johor Bahru.pptx
Buku Program Pelancaran Nilam SMK Johor Bahru.pptxBuku Program Pelancaran Nilam SMK Johor Bahru.pptx
Buku Program Pelancaran Nilam SMK Johor Bahru.pptx
 
Bab 5 Ting 4 5.2 Persekutuan Tanah Melayu
Bab 5 Ting 4  5.2 Persekutuan Tanah MelayuBab 5 Ting 4  5.2 Persekutuan Tanah Melayu
Bab 5 Ting 4 5.2 Persekutuan Tanah Melayu
 
Pertemuan 9 dan 10 - Sistem Persamaan Linear.ppt
Pertemuan 9 dan 10 - Sistem Persamaan Linear.pptPertemuan 9 dan 10 - Sistem Persamaan Linear.ppt
Pertemuan 9 dan 10 - Sistem Persamaan Linear.ppt
 
Bab 5 Ting 4 5.1 Ciri ciri Persekutuan Tanah Melayu
Bab 5 Ting 4  5.1 Ciri ciri Persekutuan Tanah MelayuBab 5 Ting 4  5.1 Ciri ciri Persekutuan Tanah Melayu
Bab 5 Ting 4 5.1 Ciri ciri Persekutuan Tanah Melayu
 
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdf
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdfTopik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdf
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdf
 
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...
 
PROGRAM PENINGKATAN AKADEMIK PANITIA SEJARAH BAGI MURID.docx
PROGRAM PENINGKATAN AKADEMIK PANITIA SEJARAH BAGI MURID.docxPROGRAM PENINGKATAN AKADEMIK PANITIA SEJARAH BAGI MURID.docx
PROGRAM PENINGKATAN AKADEMIK PANITIA SEJARAH BAGI MURID.docx
 
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdf
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdfReka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdf
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdf
 
Reka Bentuk Teknologi Nota Tingkatan satu1
Reka Bentuk  Teknologi Nota Tingkatan satu1Reka Bentuk  Teknologi Nota Tingkatan satu1
Reka Bentuk Teknologi Nota Tingkatan satu1
 

Empfohlen

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Empfohlen (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Panduan perintah dasar linux

  • 1. Panduan Perintah Dasar Linux Linux terinspirasi oleh sistem operasi Unix yang pertama kali muncul pada tahun 1969, dan terus digunakan dan dikembangkan sejak itu. Banyak dari konvensi desain untuk Unix juga terdapat pada Linux, dan bagian penting untuk memahami dasar-dasar dari sistem Linux. Orientasi utama dari Unix adalah penggunaan antarmuka baris perintah, dan warisan ini ikut terbawa ke Linux. Jadi antarmuka pengguna berbasis grafik dengan jendela, ikon dan menunya dibangun di atas dasar antarmuka baris perintah. Lagipula, hal ini berarti bahwa sistem berkas Linux tersusun agar dapat dengan mudah dikelola dan diakses melalui baris perintah. Sumber Belajar Perintah Dasar 1. Pertama – halaman manual perintah. o man <perintah> : menampilkan semua informasi tentang perintah. o <perintah> help : menampilkan opsi yang tersedia dari sebuah perintah. 2. Kedua – Buku dan Internet. Perintah Penanganan File mkdir - membuat direktori. sintaks : mkdir [OPTION] DIRECTORY... contoh : $ mkdir data ls - menampilkan isi dari direktori. sintaks : ls [OPTION]... [FILE]... contoh : $ ls -ls cd - berpindah direktori. sintaks : cd [DIRECTORY]
  • 2. contoh : $ cd data pwd - menampilkan tempat direktori yang sedang dikerjakan. sintaks : $ pwd cp - mengcopy file dan direktori. sintaks : cp [OPTION]... SOURCE DEST contoh : $ cp sample.txt sample_copy.txt $ cp sample_copy.txt target_dir mv - memindahkan atau merubah nama file. sintaks : mv [OPTION]... SOURCE DEST contoh : $ mv source.txt target_dir $ mv old.txt new.txt rm - menghapus file atau direktori. sintaks : rm [OPTION]... FILE... contoh : $ rm file1.txt , rm rf some_dir find - mencari file dalam sebuah direktori. sintaks : find [OPTION] [path] [pattern]
  • 3. contoh : $ find file1.txt, find name file1.txt touch - Update waktu akses dan modifikasi setiap BERKAS ke waktu sekarang. Argumen FILE yang tidak ada menjadi ada kosong. sintaks: touch [OPTION]... FILE... contoh : $ touch done file - menentukan jenis file. sintaks: file [OPTION...] [FILE...] contoh : $ file ubuntu-desktop.pdf locate - menemukan atau mencari file. sintaks : locate [OPTION]... FILE... contoh : $ locate file1.txt whereis - locate the binary, source, and manual page files for a command. sintaks : whereis [-bmsu] [-BMS directory... -f] filename... contoh : $ whereis ssh Pola
  • 4. Pola adalah ungkapan yang menggambarkan satu set string yang digunakan untuk memberikan gambaran ringkas dari sebuah himpunan, tanpa harus daftar semua elemen. contoh : ab*cd cocok apa pun yang dimulai dengan ab dan diakhiri dengan cd dll. $ ls *.txt artinya mencetak semua file yang berekstensi .txt (file teks) Pemrosesan Teks cat - menggabungkan file dan cetak pada keluaran standar. sintaks : cat [OPTION] [FILE]... contoh : $ cat avatar.avi.001 avatar.avi.002 > avatar.avi $ cat readme.txt echo - menampilkan baris teks. sintaks : echo [OPTION] [string] ... contoh : $ echo I love Indonesia $ echo $HOME grep - mencetak baris yang cocok dengan pola. sintaks : grep [OPTION] PATTERN [FILE]... contoh : $ grep i apple sample.txt wc - mencetak jumlah baris, kata, dan byte di file. sintaks : wc [OPTION]... [FILE]... contoh :
  • 5. $ wc file1.txt sort - mengurutkan file teks baris. sintaks : sort [OPTION]... [FILE]... contoh : $ sort file1.txt md5sum - compute and check MD5 message digest. sintaks : md5sum [OPTION]... [FILE]... contoh : $ md5sum LinuxMint-5-Fluxbox.iso > md5sums $ md5sum -c md5sums Linux File Permissions 3 jenis file permission – read, write, execute 10 bit format dari perintah 'ls -l' 1 2 3 4 5 6 7 8 9 10 file type owner group others contoh : drwxrwr owner berarti memiliki semua tiga hak akses, group mempunyai izin membaca dan menulis, others hanya mempunyai izin membaca. read - 4, write - 2, execute - 1 contoh : rwxrwr = 764 Sistem Administrasi chmod - mengubah hak akses file. sintaks : chmod [OPTION] [MODE] [FILE] contoh : $ chmod 744 calculate.sh chown - mengubah pemilik file dan group. sintaks :
  • 6. chown [OPTION]... OWNER[:[GROUP]] FILE... contoh : $ chown ugos myfile.txt su - mengubah user ID atau menjadi super-user. sintaks : su [OPTION] [LOGIN] contoh : $ su ugos $ su passwd - update token otentikasi pengguna. sintaks : passwd [options] [LOGIN] contoh : $ passwd ugos who - menunjukkan siapa yang login. sintaks : who [OPTION] contoh : $ who Managemen Proses ps - laporan snapshot dari proses saat ini. sintaks : ps [OPTION] contoh : $ ps ax
  • 7. kill - untuk membunuh proses (menggunakan mekanisme sinyal). sintaks : kill [OPTION] pid contoh : $ kill 9 2275 lsusb - daftar perangkat USB. sintaks : $ lsusb jobs - menampilkan nama dan id latar belakang pekerjaan. sintaks : $ jobs top - tampilan tugas Linux. sintaks : top -hv | -bcisSH -d delay -n iterations [-u user | -U user] -p pid [,pid ...] contoh : $ top clear - menghapus layar terminal. sintaks : $ clear free - menampilkan jumlah memori yang bebas dan digunakan dalam sistem. sintaks : free [-b | -k | -m | -g] [-o] [-s delay ] [-t] [-V] contoh : $ free -m
  • 8. Arsip tar - ke arsip file. sintaks : tar [OPTION] DEST SOURCE contoh : $ tar cvf original.tar original/ $ tar -cpvf original.tar.gz original/ $ tar xvf original.tar $ tar xjvf original.tar.bz2 $ tar --lzma -xvf original.tar.lzma bzip2 - kompresor blok-menyortir file. sintaks : bzip2 [OPTION] FILE... contoh : $ bzip2 original.mp3 $ bzip2 -d original.mp3.bz2 zip - paket dan kompres (arsip) file. sintaks : zip [OPTION] DEST SOURCE contoh : $ zip -r original.zip original/ rar - arsip file dengan kompresi. sintaks : rar <command> [-<switch 1> -<switch N>] archive [files...] contoh : $ rar original.rar original unzip - daftar, test dan ekstrak file yang dikompresi dalam sebuah ZIP archive.
  • 9. sintaks : unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir] contoh : $ unzip original.zip unrar - daftar, test dan ekstrak file yang dikompresi dalam sebuah RAR archive. sintaks : unrar <command> -<switch 1> -<switch N> <archive> <files...> <@listfiles...> <path_to_extract> contoh : $ unrar -x original.rar 7z - Sebuah pengarsipan file dengan rasio kompresi tertinggi. sintaks : 7z <command> [<switches>...] <archive_name> [<file_names>...] [<@listfiles...>] contoh : $ 7z e original.7z Jaringan ssh - SSH client (remote login program) “ssh adalah program untuk login ke mesin remote dan untuk mengeksekusi perintah pada mesin remote”. sintaks : ssh [options] [user]@hostname contoh : $ ssh -l guest 10.105.11.20 scp - secure copy (copy file program remote) “scp salinan file antara host pada jaringan”. sintaks : scp [options] [[user]@host1:file1] [[user]@host2:file2]
  • 10. contoh : $ scp file1.txt guest@ip_address:~/ ifconfig - mengkonfigurasi perangkat jaringan. sintaks : ifconfig [-a] [-v] [-s] <interface> [[<AF>] <address>] contoh : $ ifconfig iwconfig - mengkonfigurasi perangkat jaringan nirkabel. sintaks : iwconfig [interface] contoh : $ iwconfig wget - Downloader non-interaktif jaringan. sintaks : wget [option]... [URL]... contoh : $ wget -c http://repo.ugm.ac.id/iso/ubuntu/10.04/ubuntu-10.04-netbook- i386.iso netstat - Cetak koneksi jaringan, tabel routing, statistik interface, koneksi masquerade, dan keanggotaan multicast. sintaks : netstat [-vWeenNcCF] [<Af>] -r contoh : $ netstat mtr - tool diagnostik jaringan.
  • 11. sintaks : mtr [-hvrwctglspniu46] [--help] [--version] [--report] contoh : $ mtr google.co.id iftop - menampilkan penggunaan bandwidth pada sebuah perangkat ethernet oleh host. sintaks : iftop -h | [-nNpbBP] [-i interface] [-f filter code] [-F net/mask] contoh : # iftop -i eth0 File Systems fdisk - partisi manipulator. sintaks : fdisk [options] <disk> contoh : # fdisk l mount - mount file system. sintaks : mount t type device dir contoh : # mount /dev/sda5 /media/target umount - unmount file system. sintaks : umount [OPTIONS] dir | device... contoh :
  • 12. # umount /media/target du - estimasi sintaks kapasitas file. sintaks : du [OPTION]... [FILE]... contoh : $ du -h df - diskfile, laporan sintaks kapasitas hardisk. sintaks : df [OPTION]... [FILE]... contoh : $ df -h eject - eject removable media sintaks : eject [OPTION] contoh : $ eject $ eject -t Editor perintah nano - Nano, editor lainnya, yang bebas disempurnakan Pico clone. sintaks: nano [OPTIONS] [[+LINE,COLUMN] FILE].. contoh : $ nano readme.txt pico - sebuah program editor teks yang ditingkatkan.
  • 13. sintaks: pico [OPTIONS] [[+LINE,COLUMN] FILE].. contoh : $ pico readme.txt vi - program text editor. sintaks : vi [OPTION] [file]... contoh : $ vi hello.c vim - Vi Improved, program text editor. sintaks : vim [OPTION] [file]... contoh : $ vim hello.c Perintah Advanced reboot - reboot sistem. sintaks : reboot [OPTION] contoh : # reboot halt - shutdown komputer. sintaks : # halt shutdown - shutdown komputer.
  • 14. sintaks : shutdown [OPTION] contoh : # shutdown -h now sed - stream editor untuk penyaringan dan mengubah teks. sintaks : sed [OPTION] [inputfile]... contoh : $ sed 's/love/hate/g' loveletter.txt awk - pola scanning dan pengolahan bahasa. contoh : $ awk F: '{ print $1 }' sample_awk.txt watch - menjalankan program secara berkala, menunjukkan output fullscreen. sintaks : watch [OPTION] <command> contoh : $ watch lsusb alias - membuat alias dari sebuah perintah. sintaks: alias [name[=value] ... ] contoh : $ alias dir='ls -l' screen - layar manajer dengan emulasi terminal VT100/ANSI. sintaks :
  • 15. screen [-opts] [cmd [args]] contoh : $ screen -S ugos lshw - list hardware. sintaks : lshw [-format] [-options ...] contoh : $ lshw -C network dmidecode - DMI table decoder sintaks : dmidecode [OPTIONS] contoh : # dmidecode --type memory uptime - menampilkan berapa lama sistem telah berjalan. sintaks : $ uptime split - membagi file menjadi potongan-potongan. sintaks : split [OPTION]... [INPUT [PREFIX]] contoh : $ split -b 200MB avatar.avi avatar.avi. espeak - Sebuah perangkat lunak multi-lingual speech synthesizer. sintaks : espeak [options] [<words>]
  • 16. contoh : $ espeak -s 80 "Linux" aplay - command-line perekam suara dan pemutar untuk driver soundcard ALSA. sintaks : aplay [OPTION]... [FILE]... contoh : $ aplay -l $ aplay donw.wav arecord - command-line perekam suara untuk driver soundcard ALSA. sintaks : arecord [OPTION]... [FILE]... contoh : $ arecord -f cd -t raw | lame -x -r – out.mp3 lsb_release - cetak distribusi informasi spesifik. sintaks : lsb_release [options] contoh : $ lsb_release -a cal - menampilkan sebuah kalender. sintaks : cal [-hjy] [[month] year] contoh : $ cal 4 2011 date - mencetak atau mengatur tanggal dan waktu sistem. sintaks :
  • 17. date [OPTION]... [+FORMAT] contoh : # date 041520152011 artinya Apr 15 8:15 2011 history - menampilkan perintah-perintah yang sudah digunakan. sintaks : $ history bc - kalkulator. sintaks : bc [ -hlwsqv ] [long-options] [ file ... ] contoh : $ bc