tar -zxvf hadoop-2.7.3.tar.gz -C /opt/module/
-z: --gzip, --gunzip, --ungzip
-x: --exclude patterns listed in file
-v: --verbosely list files processed
-f: --use archive file or device archive
tail -f /opt/module/hive/logs/hive.log 检测配置文件的末尾 -F: 发生异常后再重试 tail -n 100 /etc/logs.log 显示文件的最后100行数据 head -n 100 /etc/logs.log 显示文件的头部100行数据剪切文件列
cut -d ',' -f 1,2 test.txt d用来指定分割符,f用来指定剪切那几列 cut -d ',' -f 2- test.txt 剪切第2列之后的列查看所有的java进程
jps: Java Virtual Machine Process Status
jps -l 查看所有的进程(使用全类名)防火墙相关命令
centos7中:
firewall-cmd --state 查看防火墙状态 systemctl stop firewalld 关闭防火墙 systemctl disable firewalld.service 阻止系统重启导致防火墙启动杀死进程
kill -9 3433 杀死进程号为3433的进程过滤文件内容
cat test.txt | grep "aa" 显示文件中包含aa的内容查找文件
find / -name passwd 在根目录下查找文件名为passwd的文件
同步日期:2021-09-24



