Search using grep
grep -rnw ./ -e "str"
Batch rename
rename "s/PNG/png" *
emmc check
mmc cid read /sys/class/mmc_host/mmc1/mmc1\:0001/
mmc extcsd read /dev/mmcblk1 | grep -i back
Reset gonme app picker layout
gsettings reset org.gnome.shell app-picker-layout
ARP scan
sodo arp-scan -I <interface> -l
images to pdf
img2pdf -S A4 -o output.pdf 1.jpg 2.png
serial log
nohup grabserial -Q -d /dev/ttyUSB1 -T --timeformat="%Y-%m-%dT%H:%M:%S.%f" -o "~/Serial.%Y-%m-%dT%H:%M:%S.log" &
gcc get default include path
gcc -xc -E -v -
gcc -xc++ -E -v -
find file end with extension
find . -type f -name *.rs
show nvme device logical sector size
nvme id-ns -H /dev/nvme0n1
change hard disk drive device logical sector size
hdparm --set-sector-size 4096 --please-destroy-my-drive /dev/sda
Redirect telnet output to file
telnet 10.124.122.199 2014 | tee -a -i ./log.log
export pdf to image
pdftoppm -png Linux_For_Beginners.pdf Linux_For_Beginners
debian static ip
# Wired Ethernet Interface
auto eth0
# iface eth0 inet dhcp
iface eth0 inet static
address 10.0.22.250
gateway 10.0.22.1
netmask 255.255.255.0
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.0.22.1 dev eth0