Linux 常用命令
来源:互联网 发布:88端口的作用是什么 编辑:程序博客网 时间:2024/05/16 11:59
1.
tty - print the file name of the terminal connected to standard input
2.
批量替换文件中的字符串:
sed -i "s/hello/DM/g" `grep hello -rl .`
3.
如何判断CPU是否为64位?
uname -a
getconf LONG_BIT
判断CPU是否支持64位:cat /proc/cpuinfo | grep flags | grep lm 如果有lm,则表示支持64
4.
who: who "show logined user"
whoami: whoami "show who am I"
whereis: whereis command "show where is the command" programer command
5. time program "calculate program run time"
$ time cd
real 0m0.001s
user 0m0.000s
sys 0m0.000s
6.route:
route del default “delete default router”
route add default gw 192.168.1.1 metric 1 “add 192.168.1.1 as a default route”
7.
adduser: adduser id "add a new user"
userdel: userdel id "delete user id"
userlist: userlist "list logined user"
passwd:
passwd id "change id's login password"
passwd -d id "delete id's login password"
8. sudo dhclient eth0
9. chown xufeng:xufeng <filename>
- 【linux 常用命令】常用命令整理
- linux常用命令
- Linux常用命令
- LINUX 常用命令
- linux常用命令
- Linux 常用命令
- Linux 常用命令
- Linux常用命令
- LINUX常用命令
- Linux 常用命令
- linux常用命令
- Linux常用命令
- Linux常用命令
- Linux 常用命令
- Linux常用命令
- Linux 常用命令
- Linux 常用命令!
- Linux 常用命令
- android PopupWindow的用法
- 插件53:获取留言薄消息
- 攻防技术融入IPS 之 协议分析
- 常用库之八:libpopt的交叉编译
- Qt学习之路(20): 事件接收与忽略
- Linux 常用命令
- 一、前期理论
- ThreadPoolTaskExecutor的配置解释
- 一个简单的完成端口类
- 一些常用的网站(备忘下)
- android之DPAD上下左右四个键控制
- 软件开发过程质量管理——从“失控”到“可控”(1)
- 重复数据删除(De-duplication)技术研究
- 用C写一个到着输出整数的函数,递归