Perintah Dasar Linux

Browsing sana-sini dapat beberapa contoh command di Linux yang cukup sering dibutuhkan tapi jarang tau.

Membuat file iso dari cd

$ dd if=/dev/hdc of=/home/joko/image.iso

CHMOD (Change Mode)

r – read permission;
w – write permission;
x – execute permission;

Octal values:
0 = Deny all
1 = Execute Only
2 = Write Only
3 = Execute and Write
4 = Read Only
5 = Read and Execute
6 = Read and Write
7 = Allow All

combination of 3 numbers: owner, group, others

Combine images into one PDF

convert *.jpg out.pdf

Creating an MPEG-4 file from all the JPEG files in the current directory :

mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2000 -oac copy -o output.avi

MySQL Database Backup

mysqldump -u root –all-databases > all_databases.sql

Leave a Reply

Your email address will not be published. Required fields are marked *