IFCFG-ETH1} //创建文件 [root@localhost ~]# find /etc/ -name "ifcfg-eth1" //查找/etc目录下包含ifcfg-eth0名称的文件 /etc/sysconfig/network-scripts/ifcfg-eth1 [root@localhost ~]# find /etc/ -iname "ifcfg-eth1"
[root@host-136 ~]# find /usr/bin/ -type l /usr/bin/bashbug /usr/bin/lastb /usr/bin/sh /usr/bin/geqn /usr/bin/ex /usr/bin/lz4cat /usr/bin/gneqn /usr/bin/gnroff 6.3 [root@host-136 ~]# find /usr/local/ -type d /usr/local/ /usr/local/bin /usr/local/etc /usr/local/...
# find / -user root -name tecmint.txt # find /home -user tecmint # find /home -group developer # find /home -user tecmint -iname "*.txt" 四、基于时间查询文件或目录 # find / -mtime 50 # find / -atime 50 # find / -mtime +50 –mtime -100 # find / -cmin -60 # find / ...
find . -not -empty-type f -exec ls -s {} \; | sort -n |head -5 11.使用-type查找指定文件类型的文件 只查找socket文件 find . -type s 查找所有的目录 find . -type d 查找所有的一般文件 find . -type f 查找所有的隐藏文件 find . -type f -name".*" 查找所有的隐藏目录 find -type...
cat /etc/profile: Linux系统环境和启动程序。包含启动控制台(bash、sh)等信息。用户换机和启动程序可以使用cat ~/.bash_profile cat /etc/bash*: 使用bash控制台的启动文件。是使用系统广泛的功能和别名。(这里可能是/etc/bashrc或者/etc/bash.bashrc,所有使用通配符代替) ...
Bash Environment & Libraries - .bashrc, .bash.d/ interactive library, lib/ scripting library Installation Scripts for many popular open source technologies Linux & Mac - curl OAuth / JWT, LDAP, find duplicate files, SSL certificate get/validate, URL encoding/decoding, Vagrant Mac & AppleScript ...
/etc/sysconfig/network-scripts/ifcfg-eno16777736 [root@localhost ~]#5、-user:按照文件属主进行查找,后跟实际用户名username[root@localhost ~]# find /home/haodao1/ -user haodao1 /home/haodao1/ /home/haodao1/.bash_logout /home/haodao1/.bash_profile /home/haodao1/.bashrc [root@localhost ~]#...
~$bash name.sh Who is there? ~$ Must’ve been my imagination How to create a backup management script in Bash Other items to consider include setting up backup management scripts. This can be a simple project that can be started and revisited later. With this, you can make a simple scr...
Linux的五个查找命令:find,locate,whereis,which,type :kuqin.com/linux/2009100 查看某目录占用空间命令: # du -sh DirPath 查看cpu和内存:# 总核数 = 物理CPU个数 X 每颗物理CPU的核数 # 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数 ...
Bash的命令别名 重定向 vim文本编辑器 vim编辑器的工作模式 命令模式中的基本操作 末行模式中的基本操作 用户和组账号概述 用户账号文件——password 用户账号文件——shadow 组账号文件—group、gshadow 添加用户账号 设置/更改用户口令 修改用户账号的属性 删除用户账号 改变用户密码期限 组管理命令 用户和组账号查询...