Finding all files containing a text string on Linux or Mac
I need to find some string in all folders. Note: -r is recursive -n is line number -w stands match the whole word
Finding all files containing a text string on Linux or Mac Read More »
I need to find some string in all folders. Note: -r is recursive -n is line number -w stands match the whole word
Finding all files containing a text string on Linux or Mac Read More »
I want to mass rename hundred of filenames like filename 001.jpg to filename-001.jpg … … … filename 099.jpg to filename-099.jpg I use this command to rename all in few seconds in my MacBook Pro. I think it is fine to run in any linux.
Fastest way to rename filenames with space to dash in linux Read More »
The easiest way to show the file size in Terminal in Mac or Linux.
Show Image Size in Terminal or Shell Read More »
You received error from the sed command in Mac, because the argument in mac is different. If you type in Mac terminal, you may receive error like this The first argument should be the extension of the backup file. The correct way is or If you don’t want any backup file, you can do like
command c expects followed by text error in Mac Read More »
One of the nice book that suitable for Hacker, but too bad it is in Japanese version. Wish someone will translate to English version in future. You can find the author from here Satoru Takabayashi, Fumitoshi Ukai, Yusuke Sato, Shinichiro Hamaji, Kazuyuki Shudo Chapter 1. Introduction 1. Introduction to Binary Hacks 2. Terminology of Binary Hacks 3. Using “file” to
Hacker’s Secret 100 Secret Techniques Revealed Read More »
How I do to replace this with a ‘normal’ line break? Replace ^M to normal line break in many config files.
Remove ^M with VIM in linux Read More »
vi /etc/network/interfaces modify iface eth0 inet dhcp to iface eth0 inet static Then add this below address 192.168.1.200 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1
Set Static IP for Raspberry Pi Read More »