2021年9月6日 星期一

How to get IP by command? (Linux)

 How to get IP by command? (Linux)

Ubuntu:
ip addr show | grep -o 'inet [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+' | grep -o [0-9].*


Centos:
ifconfig | grep -o 'inet [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+' | grep -o [0-9].*

2021年2月1日 星期一

env: bash\r: No such file or directory

 env: bash\r: No such file or directory


When you execute script file, you got error "env: bash\r: No such file or directory"

Fix it by follow command


#sed $'s/\r$//' ./install.sh > ./install.new.sh
#./install.new.sh

2020年8月3日 星期一

How to make Ubuntu support "exFAT" file system

How to make Ubuntu support "exFAT" file system

When meet "mount:unknown filesystem sype 'exfat'"

$sudo apt-get install exfat-utils exfat-fuse

2020年6月17日 星期三

2020年6月12日 星期五

How to mount a windows/samba windows share under Linux

How to mount a windows/samba windows share under Linux

You have windows to open share folder, and you want your linux client can access this folder.

From linux client
#mount -t cifs -o "username=XXX,password=XXX" //[windows_IP]/[Windows_folder] /mnt

2020年6月8日 星期一

(TOP)Temp for soulin only

123