Linux中命令示例介绍-个人笔记
为了方便以后查阅,会对在Linux学习开发过程中遇到的一些命令做一个持续整理。。
strace xxx
exec 2> /tmp/xxx.log
exec 1>&
2
set -x
grep -nr
"xxx" ./*
find ./* -name xxx
find ./* -name
"*hello"
env | grep proxy
或者
export
mknod /dev/lp0 c
6 0
sudo cat /sys/kernel/debug/usb/devices | grep
"B: "
lsusb
v4l2-ctl
-d /dev/video1 --list-formats-ext
ffmpeg
-f v4l2 -list_formats all -i /dev/video1
pactl list | grep -A2
'Source #' | grep
'Name: ' | cut
-d" " -f2
ps -aux | grep
"***"
ps -aux | grep
"***"
ll /proc/pid
du -sh
netstat -nea | grep
554
lsb_release
-a
uname
-a
gcc -c sourcefile.c
gcc -c sourcefile.c //命令执行后产生sourcefile.o目标文件
ar -rcs libsourcefile.a sourcefile.o
ar -x staticlibrary.a
ldd xxx
sudo /etc/init.d/networking restart
git branch [
-a]
git tag
git checkout tag/branch name
Continue…
转载请注明原文地址: https://ju.6miu.com/read-1886.html