命令记录

睡眠或休眠后无音频输出设备,pulseaudio -kpulseaudio --start
https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#No_sound_after_resume_from_suspend

查询网卡双工模式 ethtool enp2s0
设置网卡速度 sudo ethtool -s enp2s0 speed 1000 duplex full

无显示器时设置分辨率 xrandr --fb 1920x1080

curl http://icanhazip.com

设置root密码:sudo passwd

查看UUID等信息:sudo blkid

任务前后台切换:Ctrl+Z,jobs,fg,bg

列举系统中已有字体:fc-list : family

输出某字体的详细信息:fc-list '思源宋体 CN' file family style fullname

pdfcrop --margins "25 25 25 25" test.pdf
pdfcrop --papersize a4 test.pdf

inkscape -z -e t.png -w 1280 -h 960 t.svg
inkscape t.svg --export-pdf=t.pdf
inkscape --without-gui --file=t.pdf --export-plain-svg=t.svg

convert t.pdf t.emf

pdfseparate t.pdf %d.pdf

pdfjoin 1.pdf 2.pdf 3.pdf
pdfunite 1.pdf 2.pdf out.pdf
pdfjam --outfile t.pdf --papersize '{297mm,210mm}' --pagecommand '{}' test.pdf

convert 1.jpg 2.jpg -append result-sprite.png

for i in {1..16}
do
convert $i.jpg t/$i.pdf
done

pdfunite `ls|sort -n` o.pdf

latexmk -c

./pdf2svg t.pdf t.svg

sudo update-alternatives --config java

sudo ip address
sudo apt install net-tools,ifconfig,ping -b 192.168.0.255,arp -a

dot -Tsvg -O t
dot -Tpng -O t
dot -Tpdf -O t

for i in {1..17}
do
inkscape -z -e $i.png -w 4000 -h 3000 $i.svg
done
for i in `ls`
do
echo $i
done

python3 -m http.server

adb shell pm list packages -f
adb shell pm list packages -e
adb pull /sdcard/dirname/ .






gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=t.pdf test.pdf pdfmarks
pdfmarks文件内容:

[ /Title ()
  /Author ()
  /Subject ()
  /Keywords ()
  /ModDate (D:20180522131336)
  /CreationDate (D:20180522131336)
  /Creator (Typora)
  /Producer (Typora)
  /DOCINFO pdfmark




`sudo restore -f homexuewei.bak -i`,`cd`,`add dirname`,`extract`

find|grep cache|xargs -I {} grep -i 'augmented' {} > ~/Desktop/temp

sudo /etc/init.d/bluetooth restart

ffmpeg -i file.webp out.png





把PDF文件的每一页转换为图片,然后把图片做成PDF

pdffile=$1
tmpdir="___tmp___"
mkdir $tmpdir
mv $pdffile $tmpdir
cd $tmpdir

pdftoppm $pdffile outputname -png -rx 400 -ry 400
mv $pdffile ../

j=0;
for i in `ls|grep png`;
do
	convert $i $j.pdf;
	j=`expr $j + 1`;
done;

pdfjoin `ls|grep pdf | sort -n`

mv `ls|grep joined` ../`basename $pdffile .pdf`-img.pdf
cd ..
rm -rf $tmpdir

END

2018.5.28

原文地址:https://www.cnblogs.com/maxuewei2/p/9099328.html