博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
常用命令
阅读量:4329 次
发布时间:2019-06-06

本文共 937 字,大约阅读时间需要 3 分钟。

<1>

history  -w             //-w     Write the current history to the history file, overwriting the history file’s contents.

cat   ~/.bash_history           //命令保存文件路径.

history   -c       //-c     Clear the history list by deleting all the entries.

<2>获取ifconfig地址.

# ifconfig |grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"

192.168.8.21

<3>

find . -path "./hbase-0.94.19" -prune -o -print                   //找出除了"hbase-0.94.19"的目录(验证有问题)

具体应该是-prune这个参数

比如你想找某个dll文件,但不想找./dirname这个文件夹应该这么写

find . -path "./dirname" -prune -o -name "*.dll" -print

<4>

wget -P /data  http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-$mysql_version-linux-glibc2.5-x86_64.tar.gz

-P prefix        //下载的目录

       --directory-prefix=prefix
           Set directory prefix to prefix.  The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the
           top of the retrieval tree.  The default is . (the current directory).

 

转载于:https://www.cnblogs.com/itcomputer/p/4654105.html

你可能感兴趣的文章
一、 kettle开发、上线常见问题以及防错规范步骤
查看>>
eclipse没有server选项
查看>>
CRC码计算及校验原理的最通俗诠释
查看>>
QTcpSocket的连续发送数据和连续接收数据
查看>>
使用Gitbook来编写你的Api文档
查看>>
jquery扩展 $.fn
查看>>
Markdown指南
查看>>
influxDB的安装和简单使用
查看>>
JPA框架学习
查看>>
JPA、JTA、XA相关索引
查看>>
机器分配
查看>>
php opcode缓存
查看>>
springcloud之Feign、ribbon设置超时时间和重试机制的总结
查看>>
Go 结构体
查看>>
LINQ巩固
查看>>
观看杨老师(杨旭)Asp.Net Core MVC入门教程记录
查看>>
UIDynamic(物理仿真)
查看>>
Windows下安装Redis
查看>>
迷宫实现
查看>>
【字符编码】Java字符编码详细解答及问题探讨
查看>>