Linux Command Line
2017-04-05 23:15
225 查看
文件解压缩
unpacking or uncmpressing .gz files under linux and unix
Print Working Directory
Ubuntu Package Manager软件包管理
Advanced Packing Tool (APT)
Print network connections, routing tables, interface statistics, masquerade connections, and multi‐cast memberships
iptables/ip6tables — administration tool for IPv4/IPv6 packet filtering and NAT
保存当前防火墙规则,必要时恢复
添加用户、工作目录、设置密码
修改SSH服务端口(ubuntu server)
重启sshd服务
Add user to the sudo group
Disk Free
Memory Usage
lshw - list hardware
unpacking or uncmpressing .gz files under linux and unix
$ gunzip file.gz # $ gzip -d file.gz # $ tar -zxvf file.tar.gz -C /opt/gopath # -C(Uppercase)指定目录 (change to directory DIR) $ iconv -f gbk -t utf-8 $ dos2unix -o file.a file.b
Print Working Directory
# pwd -LP /home/timgise
Ubuntu Package Manager软件包管理
Advanced Packing Tool (APT)
Print network connections, routing tables, interface statistics, masquerade connections, and multi‐cast memberships
netstat -tlunp ## {-t|tcp} {-u|--udp} {-l|--listening} {-n|--numberic}
iptables/ip6tables — administration tool for IPv4/IPv6 packet filtering and NAT
iptables -L ## {-L|--list} List the rules in a chain or all chains
保存当前防火墙规则,必要时恢复
iptables-save > /etc/iptables-up-rules #保存 iptables-restore < /etc/iptables-up-rules # 恢复
添加用户、工作目录、设置密码
$ useradd -d /home/dev -m -s /bin/bash dev $ passwd dev
修改SSH服务端口(ubuntu server)
$ vi /etc/ssh/sshd_config # Port 22
重启sshd服务
$ sudo service sshd restart
Add user to the sudo group
usermod -aG sudo tomcat7 ## sudo vi /etc/group ## 查看系统所有用户组
Disk Free
df -h # Human readable output
Memory Usage
free -m # displays all data im MBs
lshw - list hardware
lshw -C network
相关文章推荐
- Linux Command Line and Shell Scripting Bible
- Beginning the Linux Command Line--第2章 完成基本命令行任务
- Linux Command Line 解析
- Linux Command Line
- VIVI下设置linux_command_line参数
- linux command line reference
- 8 Command Line Tools to Monitor Linux Performance
- Uninstall DB2 on Linux from Command Line
- Take screenshots from the command line in Linux
- Linux kernel command line 参数详解
- Linux Kernel command line 内核输入参数/proc/cmdline
- 6 Command Line Tools for Linux Performance Monitoring
- Linux command line
- Linux Command Line 解析
- Linux Command Line and Shell Scripting Bible__第10章
- Beginning the Linux Command Line--第1章 开始Linux命令行管理
- Linux Command Line 解析
- 10 command line in Linux
- Linux Command Line 解析
- 8 Command Line Tools to Monitor Linux Performance