当前位置:网站首页>Rhcsa Road
Rhcsa Road
2022-07-01 16:34:00 【Omniscient magical conch】
Day four homework
1> In the current directory and subdirectories , Look for... That starts with a capital letter txt file
[[email protected] ~]# touch A.txt
[[email protected] ~]# touch B.txt
[[email protected] ~]# find . -name "[A-Z]*" -a -name "*.txt"
./A.txt
./B.txt
2> stay /etc And its subdirectories , lookup host Opening file
[[email protected] ~]# find /etc -name "host*"
/etc/host.conf
/etc/hosts
/etc/avahi/hosts
/etc/hostname
/etc/nvme/hostnqn
/etc/nvme/hostid
3> stay $HOME Directory and its subdirectories , Find all files
[[email protected] ~]# find $HOME -type f
/root/.bash_logout
/root/.bash_profile
/root/.bashrc
/root/.cshrc
/root/.tcshrc
/root/anaconda-ks.cfg
/root/.cache/dconf/user
/root/.cache/tracker/db-version.txt
/root/.cache/tracker/meta.db
/root/.cache/tracker/db-locale.txt
/root/.cache/tracker/meta.db-wal
/root/.cache/tracker/meta.db-shm
/root/.cache/tracker/ontologies.gvdb
/root/.cache/tracker/parser-version.txt
/root/.cache/tracker/locale-for-miner-apps.txt
/root/.cache/tracker/last-crawl.txt
/root/.cache/tracker/first-index.txt
/root/.cache/event-sound-cache.tdb.f13823a8fa3e43329b755c2269e19612.x86_64-redhat-linux-gnu
/root/.cache/gnome-software/appstream/components.xmlb
/root/.cache/gnome-software/shell-extensions/gnome.json
/root/.cache/gnome-software/shell-extensions/extensions-web.xmlb
/root/.cache/gnome-software/flatpak-system-default/components.xmlb
/root/.cache/gnome-software/flatpak-user-user/components.xmlb
/root/.cache/gnome-software/odrs/ratings.json
/root/.cache/gstreamer-1.0/registry.x86_64.bin
/root/.cache/yelp/WebKitCache/Version 16/salt
/root/.dbus/session-bus/f13823a8fa3e43329b755c2269e19612-9
/root/.config/ibus/bus/f13823a8fa3e43329b755c2269e19612-unix-0
/root/.config/dconf/user
/root/.config/evolution/sources/system-proxy.source
/root/.config/user-dirs.dirs
/root/.config/user-dirs.locale
/root/.config/pulse/f13823a8fa3e43329b755c2269e19612-device-volumes.tdb
/root/.config/pulse/f13823a8fa3e43329b755c2269e19612-stream-volumes.tdb
/root/.config/pulse/f13823a8fa3e43329b755c2269e19612-card-database.tdb
/root/.config/pulse/cookie
/root/.config/pulse/f13823a8fa3e43329b755c2269e19612-default-sink
/root/.config/pulse/f13823a8fa3e43329b755c2269e19612-default-source
/root/.config/gtk-3.0/bookmarks
/root/.config/gnome-initial-setup-done
/root/.config/yelp/yelp.cfg
/root/initial-setup-ks.cfg
/root/.ICEauthority
/root/.local/share/gnome-shell/gnome-overrides-migrated
/root/.local/share/evolution/addressbook/system/contacts.db
/root/.local/share/evolution/calendar/system/calendar.ics
/root/.local/share/gsettings-data-convert
/root/.local/share/flatpak/repo/config
/root/.local/share/flatpak/.changed
/root/.local/share/gvfs-metadata/home
/root/.local/share/gvfs-metadata/root
/root/.local/share/gvfs-metadata/root-12e73d4f.log
/root/.local/share/gvfs-metadata/trash:
/root/.local/share/gvfs-metadata/home-c1df1f82.log
/root/.local/share/gvfs-metadata/trash:-1cb324fc.log
/root/.local/share/gnome-settings-daemon/input-sources-converted
/root/.local/share/tracker/data/tracker-store.ontology.journal
/root/.local/share/tracker/data/tracker-store.journal
/root/.local/share/tracker/data/.meta.isrunning
/root/.local/share/keyrings/login.keyring
/root/.local/share/keyrings/user.keystore
/root/.esd_auth
/root/.bash_history
/root/.Xauthority
/root/file
/root/A.txt
/root/B.txt
4> In the current directory and subdirectories , Find not out At the beginning txt file
[[email protected] ~]# find . ! -name "out*" -a -name "*.txt"
./.cache/tracker/db-version.txt
./.cache/tracker/db-locale.txt
./.cache/tracker/parser-version.txt
./.cache/tracker/locale-for-miner-apps.txt
./.cache/tracker/last-crawl.txt
./.cache/tracker/first-index.txt
./A.txt
./B.txt
5> Ignore file name case and find a.txt
[[email protected] ~]# find . -name "A.txt" -o -name "a.txt"
./A.txt
./a.txt
6> In the current directory except aa Search in subdirectories other than txt file
[[email protected] ~]# ll /aa
total 0
-rw-r--r--. 1 root root 0 Feb 14 07:17 g.txt
[[email protected] ~]# find . -path /aa -prune -o -name "*.txt"
./.cache/tracker/db-version.txt
./.cache/tracker/db-locale.txt
./.cache/tracker/parser-version.txt
./.cache/tracker/locale-for-miner-apps.txt
./.cache/tracker/last-crawl.txt
./.cache/tracker/first-index.txt
./A.txt
./B.txt
./a.txt
7> In the current directory and subdirectories , Find the symbolic link file
[[email protected] ~]# ln -s A.txt linka.txt
[[email protected] ~]# ll
total 8
-rw-------. 1 root root 1036 Feb 10 14:33 anaconda-ks.cfg
-rw-r--r--. 2 root root 0 Feb 14 07:03 a.txt
-rw-r--r--. 1 root root 0 Feb 14 06:57 A.txt
-rw-r--r--. 1 root root 0 Feb 14 06:57 B.txt
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Desktop
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Documents
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Downloads
-rw-r--r--. 1 root root 0 Feb 14 06:56 file
-rw-r--r--. 1 root root 1308 Feb 10 14:39 initial-setup-ks.cfg
lrwxrwxrwx. 1 root root 5 Feb 14 07:24 linka.txt -> A.txt
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Music
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Pictures
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Public
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Templates
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Videos
-rw-r--r--. 2 root root 0 Feb 14 07:03 x.txt
[[email protected] ~]# find . -type l
./linka.txt
8> lookup 2 Files that have been changed in days
[[email protected] ~]# find . -mtime -2
.
./.cache/tracker
./.cache/tracker/meta.db
./.cache/tracker/meta.db-wal
./.cache/tracker/meta.db-shm
./.cache/tracker/locale-for-miner-apps.txt
./.cache/gnome-software/shell-extensions
./.cache/gnome-software/shell-extensions/gnome.json
./.cache/gnome-software/shell-extensions/extensions-web.xmlb
./.cache/gnome-software/odrs
./.cache/gnome-software/odrs/ratings.json
./.config/ibus/bus
./.config/ibus/bus/f13823a8fa3e43329b755c2269e19612-unix-0
./.config/dconf
./.config/dconf/user
./.config/pulse/f13823a8fa3e43329b755c2269e19612-default-sink
./.config/pulse/f13823a8fa3e43329b755c2269e19612-default-source
./.config/gtk-3.0
./.config/gtk-3.0/bookmarks
./.ICEauthority
./.local/share/evolution/addressbook/system
./.local/share/evolution/addressbook/system/contacts.db
./.local/share/tracker/data
./.local/share/tracker/data/tracker-store.journal
./.local/share/tracker/data/.meta.isrunning
./.local/share/keyrings
./.Xauthority
./file
./A.txt
./B.txt
./a.txt
./x.txt
./linka.txt
9> lookup 2 Files that were changed a few days ago
[[email protected] ~]# find . -mtime +2
./.bash_logout
./.bash_profile
./.bashrc
./.cshrc
./.tcshrc
./anaconda-ks.cfg
./.cache
./.cache/dconf
./.cache/dconf/user
./.cache/libgweather
./.cache/evolution
./.cache/evolution/addressbook
./.cache/evolution/addressbook/trash
./.cache/evolution/calendar
./.cache/evolution/calendar/trash
./.cache/evolution/mail
./.cache/evolution/mail/trash
./.cache/evolution/memos
./.cache/evolution/memos/trash
./.cache/evolution/sources
./.cache/evolution/sources/trash
./.cache/evolution/tasks
./.cache/evolution/tasks/trash
./.cache/tracker/db-version.txt
./.cache/tracker/db-locale.txt
./.cache/tracker/ontologies.gvdb
./.cache/tracker/parser-version.txt
./.cache/tracker/last-crawl.txt
./.cache/tracker/first-index.txt
./.cache/event-sound-cache.tdb.f13823a8fa3e43329b755c2269e19612.x86_64-redhat-linux-gnu
./.cache/gnome-software
./.cache/gnome-software/appstream
./.cache/gnome-software/appstream/components.xmlb
./.cache/gnome-software/flatpak-system-default
./.cache/gnome-software/flatpak-system-default/components.xmlb
./.cache/gnome-software/flatpak-user-user
./.cache/gnome-software/flatpak-user-user/components.xmlb
./.cache/gstreamer-1.0
./.cache/gstreamer-1.0/registry.x86_64.bin
./.cache/yelp
./.cache/yelp/WebKitCache
./.cache/yelp/WebKitCache/Version 16
./.cache/yelp/WebKitCache/Version 16/salt
./.cache/yelp/WebKitCache/Version 16/Blobs
./.dbus
./.dbus/session-bus
./.dbus/session-bus/f13823a8fa3e43329b755c2269e19612-9
./.config
./.config/ibus
./.config/gnome-session
./.config/gnome-session/saved-session
./.config/evolution
./.config/evolution/sources
./.config/evolution/sources/system-proxy.source
./.config/goa-1.0
10> Find more than 1M The file of
[[email protected] ~]# find -size +1000
./.cache/tracker/meta.db
./.cache/tracker/meta.db-wal
./.cache/gnome-software/appstream/components.xmlb
./.cache/gnome-software/shell-extensions/gnome.json
./.cache/gnome-software/shell-extensions/extensions-web.xmlb
./.cache/gnome-software/odrs/ratings.json
./.cache/gstreamer-1.0/registry.x86_64.bin
6、 Find files /etc/yum.repos.d/redhat.repo Contains the string re All of the line . Place copies of all these lines in the file in the original order /root/files in .
[[email protected] ~]# find /etc/yum.repos.d/redhat.repo | xargs grep "re"
# *** This file is auto-generated. Changes made here will be over-written. ***
# *** Use "subscription-manager repo-override --help" if you wish to make changes. ***
# a "yum repolist" to refresh available repos
[[email protected] ~]# find /etc/yum.repos.d/redhat.repo | xargs grep "re" | xargs > /root/files
[[email protected] ~]# cat /root/files
# *** This file is auto-generated. Changes made here will be over-written. *** # *** Use subscription-manager repo-override --help if you wish to make changes. *** # a yum repolist to refresh available repos
All user valid command aliases :
Write a command that is valid for all users. The alias is hh, After each user enters this command, a... Can be created in the user's home directory file1 file .
[[email protected] ~]# vim /etc/passwd

[[email protected] ~]# hh
[[email protected] ~]# ll
total 12
-rw-------. 1 root root 1036 Feb 10 14:33 anaconda-ks.cfg
-rw-r--r--. 2 root root 0 Feb 14 07:03 a.txt
-rw-r--r--. 1 root root 0 Feb 14 06:57 A.txt
-rw-r--r--. 1 root root 0 Feb 14 06:57 B.txt
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Desktop
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Documents
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Downloads
-rw-r--r--. 1 root root 0 Feb 14 06:56 file
-rw-r--r--. 1 root root 0 Feb 14 07:41 file1
-rw-r--r--. 1 root root 208 Feb 14 07:34 files
-rw-r--r--. 1 root root 1308 Feb 10 14:39 initial-setup-ks.cfg
lrwxrwxrwx. 1 root root 5 Feb 14 07:24 linka.txt -> A.txt
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Music
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Pictures
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Public
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Templates
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Videos
-rw-r--r--. 2 root root 0 Feb 14 07:03 x.txt
边栏推荐
- 2023 spring recruitment Internship - personal interview process and face-to-face experience sharing
- Microservice tracking SQL (support Gorm query tracking under isto control)
- Talking from mlperf: how to lead the next wave of AI accelerator
- Sqlserver query: when a.id is the same as b.id, and the A.P corresponding to a.id cannot be found in the B.P corresponding to b.id, the a.id and A.P will be displayed
- Tutorial on the principle and application of database system (001) -- MySQL installation and configuration: installation of MySQL software (Windows Environment)
- Malaysia's Star: Sun Yuchen is still adhering to the dream of digital economy in WTO MC12
- [daily question] 1175 Prime permutation
- [nodemon] app crashed - waiting for file changes before starting... resolvent
- The picgo shortcut is amazing. This person thinks exactly the same as me
- Comprehensively view the value of enterprise digital transformation
猜你喜欢

数据库系统原理与应用教程(004)—— MySQL 安装与配置:重置 MySQL 登录密码(windows 环境)

Pico, do you want to save or bring consumer VR?

The picgo shortcut is amazing. This person thinks exactly the same as me

普通二本,去过阿里外包,到现在年薪40W+的高级测试工程师,我的两年转行心酸经历...

Principes et applications du système de base de données (006) - - compilation et installation de MySQL 5.7 (environnement Linux)

OJ questions related to complexity (leetcode, C language, complexity, vanishing numbers, rotating array)

Analysis of PostgreSQL storage structure

【SQL语句】请问这边为什么select出了两个上海,查询出了不同的count我想让他变成一个上海,count只显示一个总和
![[每日一氵]Latex 的通讯作者怎么搞](/img/0f/d19b27dc42124c89993dee1bada838.png)
[每日一氵]Latex 的通讯作者怎么搞

【Hot100】17. Letter combination of telephone number
随机推荐
Pico, do you want to save or bring consumer VR?
Solution to the problem that the keypad light does not light up when starting up
Tutorial on principles and applications of database system (004) -- MySQL installation and configuration: resetting MySQL login password (Windows Environment)
Endeavouros mobile hard disk installation
数据库系统原理与应用教程(006)—— 编译安装 MySQL5.7(Linux 环境)
There will be a gap bug when the search box and button are zoomed
DO280管理应用部署--pod调度控制
博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
Origin2018安装与使用(整理中)
红队第10篇:coldfusion反序列化过waf改exp拿靶标的艰难过程
I'm a senior test engineer who has been outsourced by Alibaba and now has an annual salary of 40w+. My two-year career changing experience is sad
【每日一题】1175. 质数排列
Tutorial on the principle and application of database system (005) -- Yum offline installation of MySQL 5.7 (Linux Environment)
圈铁发音,动感与无噪强强出彩,魔浪HIFIair蓝牙耳机测评
Principle of motion capture system
Zhou Shaojian, rare
Sweden announced its decision to exclude Huawei 5g equipment, but Huawei has successfully found a new way out
[JetsonNano] [教程] [入门系列] [三] 搭建TensorFlow环境
Stonedb is building blocks for domestic databases, and the integrated real-time HTAP database based on MySQL is officially open source!
Is it reliable to open an account on flush with mobile phones? Is there any potential safety hazard