User Tools

Site Tools


command

This is an old revision of the document!


set dns under Windows:

netsh interface ip set dns name="本地连接" source=static addr=42.120.21.30 register=PRIMARY
netsh interface ip set dns "本地连接" static 42.120.21.30 

Generate /etc/shadow password:

mkpasswd --method=md5 --salt=STRING PASSWORDSTRING

$1$:md5 $2a$:Blowfish $2y$:Blowfish, with correct handling of 8 bit characters
$5$:sha256 $6$:sha512

GNU find:

#execute multiple command when found:
find . -type f -iname "*" -exec sh -c "pwd; echo {}" \;
#change file extension:
find /the/path -depth -name "*.abc" -exec sh -c 'mv "$1" "${1%.abc}.edefg"' _ {} \;

xarg:

command.1503752179.txt.gz · Last modified: by fe80:2bec:757d:56d3:037e:e14d:9572:af0a

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki