![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux系统使用
frankyzjl
这个作者很懒,什么都没留下…
展开
-
设置PATH
echo $PATHexport PATH="$PATH:/opt/uClinux/bfin-linux-culibc/bin:/opt/uClinux/bfin-uclinux/bin"export PATH=$PATH:/opt/uClinux/bfin-uclinux/bin:/opt/uClinux/bfin-linux-uclibc/bin将上面这句话写入.bashrc文件重新登录原创 2009-04-27 15:46:00 · 230 阅读 · 0 评论 -
nfs
portmap &mount -o nfsvers=3,tcp,rsize=1024,wsize=1024,nolock -t nfs 192.168.139.152:/home/franky/T.38/pjproject-1.0.1 /pjsipmount -o nfsvers=3,tcp,rsize=1024,wsize=1024,nolock -t nfs 192.168.139.152:/原创 2009-04-27 15:55:00 · 330 阅读 · 0 评论 -
line_counter
find . -name "*.c" | xargs wc -lfind . -name "*.cpp" | xargs wc -lfind . -name "*.h" | xargs wc -l原创 2009-04-27 15:53:00 · 167 阅读 · 0 评论 -
gdb 和 gdbserver
gdb 和 gdbserver1. 通过串口:(1)telnet 192.168.139.158 root uClinux(2)board:gdbserver /dev/ttyS0 /bin/mywave(3)host:su rootbfin-uclinux-gdb -b 57600 mywave.gdbgdb) target remote /dev/ttyS0 2. 通过网络(1)boa原创 2009-04-27 15:52:00 · 315 阅读 · 0 评论 -
grep命令的使用
grep命令的的语法:grep [options] PATTERN [FILES]grep string *.h当前目录下,在所有的.h文件中寻找字符串“string“。正则表达式:1、grep e$ words.txt 在words.txt中查找以字母e结尾的行; $指向一行的结尾。2、grep a[[:blank:]] words.txt 查找以字母a结尾的单词;[[:blank:]]原创 2009-04-27 15:51:00 · 251 阅读 · 0 评论 -
find命令的使用
find命令的完整语法格式:find [path] [options] [tests] [actions]实例:1、 find /home/franky/Desktop/ -name "*~" -print2、 find / -mount -name wish -print (-mount表示不必挂载其他的文件系统)3、 find . -newer file1 -type f -print原创 2009-04-27 15:50:00 · 344 阅读 · 0 评论 -
ps和nice命令
ps -af 查看所有进程,并显示进程的完整信息[root@franky franky]# ps -afUID PID PPID C STIME TTY TIME CMDroot 7214 7190 0 09:59 pts/2 00:00:00 su rootroot 7217 7214 0 09:59 pts/2 00:原创 2009-04-27 15:50:00 · 607 阅读 · 0 评论 -
rpm卸载包的命令
可以先用rpm -q xxx 或者 rpm -qf xxx/bin/xxxx.xx 来查询一下所属的rpm包的名字。然后用rpm -e xxxxxx 来删之。xxx/bin/xxxx.xx 是一个包中任意的文件xxxxxx 是查询得到的rpm包的名称 rpm -e的时候后面的文件名不用加版本号原创 2009-04-27 15:49:00 · 55007 阅读 · 1 评论 -
输入输出重定向和管道
输出重定向: ls -l >lsout.txt标准输出和标准错误输出分别重定向: kill -HUP 1234 >killout.txt 2>killerr.txt将二者输出到同一个文件中: kill -HUP 1234 >killout.txt 2>&1输入重定向: more 管道:ls -l | more原创 2009-04-27 15:47:00 · 309 阅读 · 0 评论 -
del_all_"~"_file
find . -name "*~" -print -type f -exec rm {} /;原创 2009-04-27 15:54:00 · 224 阅读 · 0 评论