RHEL ve CentOS Sunucuya Rar-Unrar Nasıl Yüklenir?


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
yum install unrar

komutunu kullanarak sunucunuza unrar’ı yükleyebilirsiniz.

unrar x dosyadi.rar

komutu ile de, arşivden dosyaları çıkarabilirsiniz.

Change default crontab editor to nano in FreeBSD


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

When I edit the crontab using crontab -e it opens the crontab in vi. I’d prefer it to use nano. How can I change this?

# Every time when a unixsoftware starts an editor, it tries it with $EDITOR e.g.
# crontab -e
#
#export EDITOR=vi
export EDITOR="$(which nano)"

How to mount usb flash disk on FreeBSD


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
mount_msdosfs /dev/da0s1 /mnt/usb

Changing the shell for all existing users


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
cd /usr/home && for i in *;do chsh -s bash $i;done

Büyük databaseleri yedek almak


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Büyük tablo adedi çok databaseleri yedek alırken şöyle bir hata ile karşılaşıyorsanız,

mysqldump: Got error: 1016: Can't open file: './databasename/table.frm' (errno: 24) when using LOCK TABLES
mysqldump -u MyUsername -p MyDatabase --lock-tables=false

yazarak dump alma işlemine devam edebilirsiniz.

Convert lower case to upper and upper to lower case using tr


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

lower to upper

tr '[a-z]' '[A-Z]' < lower-upper-case.file > upper-lower-case.file

upper to lower

tr '[A-Z]' '[a-z]' < upper-lower-case.file > lower-upper-case.file

How to tar and untar files in UNIX?


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /var/www/vhosts/softimage.net/httpdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

tar

tar -czvf folder-$(date "+%Y%m%d").tar.gz folder

untar

tar -zxvf folder-20090120.tar.gz