คำสั่ง Linux Command พื้นฐานสำคัญใช้บ่อยที่ต้องจำ
ตารางที่อธิบายคร่าวๆเกี่ยวกับ Linux command Line หรือคำสั่ง linux พื้นฐานที่ใช้กันบ่อยๆ ครับ ..
ในเครื่องของเรามี mount point อะไรอยู่บ้าง
df -h | grep /dev
ดูว่าเรามี Harddisk ที่อยู่ในระบบและยังไม่ได้กำหนดการ mount ไว้
ls /dev/disk/by-uuid/ -alh
ตรวจสอบ file system type
parted /dev/sda1 p
ขนาดของ HDD
fdisk -l /dev/sdb
สร้าง partition
fdisk /dev/sdb
mkfs.ext4 /dev/sdb1
mkdir /hdd1
mount /dev/sdb1 /hdd1
umount /dev/sdb1 /hdd1
March 31, 2014
ตารางที่อธิบายคร่าวๆเกี่ยวกับ Linux command Line หรือคำสั่ง linux พื้นฐานที่ใช้กันบ่อยๆ ครับ ..
use “find” cgi/perl file in web server with directadmin find /home/*/domains/*/public_html/cgi-bin/ -iname *.cgi -ls find /home/*/domains/*/public_htm..
Solutions: Change and Update Time Zone (Bangkok ICT) on CentOS/Debian or other Linux rm -f /etc/localtime ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/..
#การใช้ netstat ตรวจสอบการถูกยิงด้วย syn คำสั่ง netstat -ntu | grep SYN_RECV | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nrอันนี้จะบอกว่..
Ploblem: forget MySQL root password Solutions: Recover(hack) MySQL root password 1. Login as root 2. Stop the MySQL server by using command /etc/init...
from https://github.com/vdeville/ssh-login-alert-telegram apt-get -y install git cd /opt/ && git clone https://github.com/vdeville/ssh-login-alert-tel..