Filename | Basic Commands in Linux |
Permission | rw-r--r-- |
Author | Banditoz |
Date and Time | 06.13 |
Label | Linux |
Action |
BackTrack is an operating system based on the Ubuntu GNU/Linux distribution aimed at digital forensics and penetration testing use..,below are some basic commands in linux.,
see basic command usage–> #man
example : #man ls #man mv #man scp #man rm
displays the contents of files per screen% –> #more
example: #more catatan.sh
displays the contents of the file at the top –> #head
example : #head catatan.sh
displays the contents of the file under–> #tail
example : #tail catatan.sh
create a new directory–> #mkdir
example : #mkdir laporan
create a directory at once and its derivatives
example : #mkdir -p laporan/juli/2007
delete directory–> #rmdir
example : #rmdir laporan
delete the directory as well as its derivatives
example : #rm -rf laporan
move files –> #mv
example : #mv catatan.sh /home/denot
replace / rename the file –> #mv
example : #mv catatan.sh tulisan.sh
copy / copy the files–> #cp
example : #cp catatan.sh /home/denot
copy / copy the folder –> #cp -rf
example : #cp -rf laporan /home/denot
copy / copy files dijaringan–> #scp
example : #scp boneka.jpg 192.168.0.20:/home/nisa
copy / copy files dijaringan –> #scp -r
example: #scp -r laporan 192.168.0.20:/home/nisa
see how much memory is used–> #du
example: #du -h gambar.jpg
change the active directory–> #cd
absolute path [nama direktori]
example : #cd laporan
displays the contents of files per screen% –> #more
example: #more catatan.sh
displays the contents of the file at the top –> #head
example : #head catatan.sh
displays the contents of the file under–> #tail
example : #tail catatan.sh
create a new directory–> #mkdir
example : #mkdir laporan
create a directory at once and its derivatives
example : #mkdir -p laporan/juli/2007
delete directory–> #rmdir
example : #rmdir laporan
delete the directory as well as its derivatives
example : #rm -rf laporan
move files –> #mv
example : #mv catatan.sh /home/denot
replace / rename the file –> #mv
example : #mv catatan.sh tulisan.sh
copy / copy the files–> #cp
example : #cp catatan.sh /home/denot
copy / copy the folder –> #cp -rf
example : #cp -rf laporan /home/denot
copy / copy files dijaringan–> #scp
example : #scp boneka.jpg 192.168.0.20:/home/nisa
copy / copy files dijaringan –> #scp -r
example: #scp -r laporan 192.168.0.20:/home/nisa
see how much memory is used–> #du
example: #du -h gambar.jpg
change the active directory–> #cd
absolute path [nama direktori]
example : #cd laporan
relative path ../../../
example: #cd laporan/juli/2007
create a new file (blank file) –> #touch
example : #touch coba1
for once #touch coba1 coba2 coba3
write into the file –> #echo
example : #echo “nama saya” >> /dataku/catatan.sh
displays the contents of the file –> #cat
example : #cat /home/deni/catatan.sh
edit (editor) –> #vi
example : #vi catatan.sh
see the complete partition on the pc–> #fdisk -l
example : #fdisk -l
browse the hard drive that still empty –> #df -k
example : #df -k /dev/hda1
Scandisk Harddisk –> #fsck
example : #fsck /dev/hda2
see the total memory used –> #free
example : #free
see the directory in which we work –> #pwd
example : #pwd
compress file –> #gzip
example : #gzip -c test.txt > test.gz
extract file compress –> #gunzip
example : #gunzip test.gz
compress file –> #tar -czf #tar -czf
example : #tar -czf denot.tar.gz denot
( bz2 ): #tar -czf denot.tar.bz2 denot
Extract file kompres –> #tar -xzvf #tar -xjvf
example : #tar -xzvf denot.tar.gz
( bz2 ): #tar -xjvf denot.tar.bz2
read file format pdf –> #xpdf
example : #xpdf brosur.pdf
remote pc another in network–> #ssh
example : #ssh root@192.168.0.20
see the ip address that is used–> #ifconfig
example : #ifconfig eth0
install file rpm –> #rpm -ivh
example : #rpm -ivh ifolder3-server.i586.rpm
upgrade file rpm –> #rpm -Uvh
example : #rpm -Uvh ifolder3-server.i586.rpm
delete file rpm –> #rpm -e
example: #rpm -e ifolder3-server.i586.rpm
melihat file rpm yang sudah terinstall –> #rpm -qa
example : #rpm -qa |grep xmms
mounting new media –> #mount
example: #mount /dev/sda /mnt/flashdisk
view running processes –> #ps
example : #ps axf
download file–> #wget
example : #wget -t0 -cb [nama file download] -O var/temp
displays routing table –> #route
example : #route -n
create link file (shortcut) –> #ln
example : #ln -s linux-2.6.17.12 linux
change of ownership –> #chmod
example: #chmod 777 /data/share
add user –> #useradd
example : #useradd denok
add password –> #passwd
example : #passwd denok
lock password –> #passwd -l
example : #passwd -l denok
unlock password –> #passwd -u
example : #passwd -u denok
bypass password –> #passwd -d
example : #passwd -d denok
delete user –> #userdel
example : #userdel denok
add group –> #groupadd
example : #groupadd suse
delete group –> #groupdel
example : #groupdel suse
regardexample: #cd laporan/juli/2007
create a new file (blank file) –> #touch
example : #touch coba1
for once #touch coba1 coba2 coba3
write into the file –> #echo
example : #echo “nama saya” >> /dataku/catatan.sh
displays the contents of the file –> #cat
example : #cat /home/deni/catatan.sh
edit (editor) –> #vi
example : #vi catatan.sh
see the complete partition on the pc–> #fdisk -l
example : #fdisk -l
browse the hard drive that still empty –> #df -k
example : #df -k /dev/hda1
Scandisk Harddisk –> #fsck
example : #fsck /dev/hda2
see the total memory used –> #free
example : #free
see the directory in which we work –> #pwd
example : #pwd
compress file –> #gzip
example : #gzip -c test.txt > test.gz
extract file compress –> #gunzip
example : #gunzip test.gz
compress file –> #tar -czf #tar -czf
example : #tar -czf denot.tar.gz denot
( bz2 ): #tar -czf denot.tar.bz2 denot
Extract file kompres –> #tar -xzvf #tar -xjvf
example : #tar -xzvf denot.tar.gz
( bz2 ): #tar -xjvf denot.tar.bz2
read file format pdf –> #xpdf
example : #xpdf brosur.pdf
remote pc another in network–> #ssh
example : #ssh root@192.168.0.20
see the ip address that is used–> #ifconfig
example : #ifconfig eth0
install file rpm –> #rpm -ivh
example : #rpm -ivh ifolder3-server.i586.rpm
upgrade file rpm –> #rpm -Uvh
example : #rpm -Uvh ifolder3-server.i586.rpm
delete file rpm –> #rpm -e
example: #rpm -e ifolder3-server.i586.rpm
melihat file rpm yang sudah terinstall –> #rpm -qa
example : #rpm -qa |grep xmms
mounting new media –> #mount
example: #mount /dev/sda /mnt/flashdisk
view running processes –> #ps
example : #ps axf
download file–> #wget
example : #wget -t0 -cb [nama file download] -O var/temp
displays routing table –> #route
example : #route -n
create link file (shortcut) –> #ln
example : #ln -s linux-2.6.17.12 linux
change of ownership –> #chmod
example: #chmod 777 /data/share
add user –> #useradd
example : #useradd denok
add password –> #passwd
example : #passwd denok
lock password –> #passwd -l
example : #passwd -l denok
unlock password –> #passwd -u
example : #passwd -u denok
bypass password –> #passwd -d
example : #passwd -d denok
delete user –> #userdel
example : #userdel denok
add group –> #groupadd
example : #groupadd suse
delete group –> #groupdel
example : #groupdel suse
Banditoz