命令chown
更改文件所有者和组
chown [OPTION]... [OWNER][:[GROUP]] FILE...
更改文件所有者和组
chown [OPTION]... [OWNER][:[GROUP]] FILE...
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 8081
......
......
sudo nano /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:8081>
......
......
</VirtualHost>
sudo systemctl restart apache2
-pix_fmt(像素格式) -s(设置帧大小WxH)ffmpeg -y -i input.mp4 -pix_fmt rgb8 -r 10 -s 320x240 output.gif
ffmpeg -y -i input.mp4 -pix_fmt rgb8 -r 10 -vf 'scale=320:-1' output.gif
-ss(开始时间偏移) -t(持续时间)ffmpeg -i input.mp4 -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif
ffmpeg -y -ss 5 -t 5 -i input.mp4 -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif
-r(设置帧速率)ffmpeg -i input.mp4 -r 1 -s 1024x768 -f image2 input-%03d.jpeg
$ nano .bashrc
export HISTCONTROL=ignorespace
$ source .bashrc
$ find /var/log -mtime 0 -ls
33575669 4 drwxr-xr-x 15 root root 4096 7月 29 06:33 /var/log
34131780 164 -rw------- 1 root root 166061 7月 29 10:20 /var/log/messages
find /var/log -mtime -1
find /var/log -mtime 1
find /var/log -mtime +1
$ find . -size +40M -ls
17180574 42480 -rwxr-xr-x 1 root root 43499520 3月 11 2020 ./kubectl
$ find . -size +40M -exec ls -lh {} \;
-rwxr-xr-x 1 root root 42M 3月 11 2020 ./kubectl
grep -i 'text' hello.txt
grep 'text' hello.txt hi.txt
grep 'text' *
grep -R 'text' *
find ~ -name pip* | xargs -i grep "index-url" {} --color -nH
/home/lnsoft/.config/pip/pip.conf:2:index-url = https://mirrors.aliyun.com/pypi/simple/
find . | grep -F .run
ll | grep '^-'
ll -R | grep '^d'
ll | grep '^d' | wc -l
brew install imagemagick
convert test.jpg -resize x640 test.jpg
convert test.jpg -resize 640x640 test.jpg
convert test.jpg -resize 640x640! test.jpg
find . -name '*.png' -exec convert {} -resize 640x640 {} \;
wget -i urls.txt