Perintah Dasar Linux

Ini adalah perintah-perintah dasar yang biasa digunakan oleh beberapa Linux. Seperti debian, Ubuntu dll. Semoga membantu …

Perintah
Format
Contoh
Keterangan
login
login  (username)
login mella
untuk masuk kedalam system linux
logout
logout
logout
untuk keluar dari user yang sedang login
tty
tty
tty
untuk mengetahui posisi virtual terminal anda
reboot
init 6
shutdown  –r  now
reboot
init 6
shutdown  –r  now
reboot
init 6
shutdown  –r  now
untuk merestart system
shutdown  –h  now
halt
init 0
poweroff
shutdown  –h  now
halt
init 0
poweroff
shutdown  –h  now
halt
init 0
poweroff
mematikan system anda
uname  
uname  
uname  
menampilkan informasi sistem
history
history
history
mengetahui perintah sebelumnya yang pernah diketikkan
history  –c
history  –c
history  –c
menghapus history
date
date
date
menampilkan tanggal, bulan, tahun dan jam
date –s
date –s “DD MM yyyy”
date –s “12 feb 2012 12:12:12”
merubah tanggal
cal –y
cal –y
cal –y
menampilkan calender
hostname
hostname
hostname
menampilkan hostname server
pwd
pwd
pwd
menampilkan directory active
ls
ls  -l
ls  -a
ls
ls  -l
ls  -a
ls
ls  -l
ls  -a
melihat isi directory
menampilkan isi directory secara detail
menampilkan isi directory secara lengkap
mkdir
mkdir  (nama_directory)
mkdir  poltekom
membuat directory
cd
cd   (name_directory)
cd   /home/mella
pindah directory
mv
mv  (nama_directory_lama) (nama_directory_baru)
mv  poltekom   poltekommalang
mengganti nama directory
rmdir
rmdir  (name_directory)
rmdir  poltekommalang
menghapus directory
cp
cp  nama_directory directory_ backup
cp  poltekommalang poltekom
backup file
touch
touch (nama_file)
touch  poltekom
membuat file
mv
mv  nam_file  lokasi_file
mv   poltekom   /home/mella
memindah file
rm
rm  nama_file
rm  poltekom
menghapus file
cat
more
cat  (nama_file)
more  (nama_file)
cat  poltekom
more  poltekom
melihat isi file
vim
gedit
pico
namo
vim  (nama_file)
gedit  (nama_file)
pico  (nama_file)
nano  (nama_file)
vim   poltekom
gedit   poltekom
pico   poltekom
nano   poltekom
edit file
locate
locate  (nama_file/directory)
locate   poltekom
mencari file atau directory
chmod
chmod   (nama_file/directory)
chmod   755  poltekom
merubah mode file/directory
chown
chown  (owner) (file/directory)
chown   mella   poltekom
merubah owner file/directory
chgrp
chgrp  (group)  (file/directory)
chgrp   mella  poltekom
merubah group file/directory
useradd
useradd  (nama_user)
useradd   mella
menambah user
userdel
userdel (nama_user)
userdel   mella
menghapus user
passwd
passwd   (nama_user)
passwd   mella
merubah password
who
who
Who
menampilkan user yang sedang login
groupadd
groupadd  (nama_group)
groupadd   mella
menambah nama group

groupdel
groupdel  (nama_group)
groupdel   mella
menghapus nama group
top
top
top
melihat penggunaaan memori dan cpu
df –h
df  -h
df  -h
melihat ukuran partisi
du  -h
du  -h
du  -h
melihat ukuran sebuah folder
ps  -ax
ps  -ax
ps  -ax
melihat proses/ service yang sedang dijalankan oleh system
free  -m
free –m
free –m
melihat free memori
tail
tail  -f  (nama_file)
tail  -f  /var/log/syslog
melihat  isi file 10 baris terakhir
head
head  -f  (nama_file)
head  -f  /var/log/syslog
melihat isi file 10 baris pertama
ifconfig
ifconfig
ifconfig
melihat konfigurasi ip address
ip  a  s
ip  a  s
ip  a  s
melihat konfigurasi ip address
route  -n
route  -n
route  -n
melihat gateway
ip  r  s
ip  r  s
ip  r  s
kelihat gateway
ping
ping  (ip_address)
ping  192.168.1.1
cek koneksi dengan protocol icmp
traceroute
traceroute  (ip_address)
Traceroute ke google
cek koneksi dengan traceroute
mtr
mtr  (ip_address)
mtr  ke google
cek koneksi dengan mtr
tar
tar xvfz (nama_file)
tar  xvfz  apache.tar.gz
extract file
fsck
fsck
fsck
check disk from error
tar  -cf
tar  -cf   compressed_file    folder
Tar   -c  apache.tar   apache/
Membuat file yang dikompres
 

Penulis : Mella ~ Sebuah blog yang menyediakan berbagai macam informasi

Artikel Perintah Dasar Linux ini dipublish oleh Mella pada hari Thursday, May 21, 2015. Semoga artikel ini dapat bermanfaat.Terimakasih atas kunjungan Anda silahkan tinggalkan komentar.sudah ada 0 komentar: di postingan Perintah Dasar Linux
 

0 comments:

Post a Comment