Finding files in linux and then doing something with that information (locate, find, updatedb, exec)

Subscribers:
1,220
Published on ● Video Link: https://www.youtube.com/watch?v=1_eFB5n_-ls



Category:
Vlog
Duration: 10:48
47 views
0


Let us find those files you may need to change. Config files, files altered by accident, or maybe even files intentionally corrupted. Once we find them you can then take action against them.

Commands
1 clear
2 locate conf
3 locate conf$
4 locate -r conf$
5 locate -r conf$ | grep amazon
6 locate -r conf$ | grep -i aws
7 locate -r conf$ | grep my
8 pwd
9 touch my.conf
10 locate -r conf$ | grep my
11 updatedb
12 ls -ltra /var/lib/mlocate/
13 sudo ls -ltra /var/lib/mlocate/
14 sudo updatedb
15 set -o vi
16 locate -r conf$ | grep my
17 locate conf | wc -l
18 locate -r conf$ | wc -l
19 locate -r conf$ | cups
20 sudo yum install cups
21 locate -r conf$ | cups
22 locate -r conf$ | grep cups
23 sudo updatedb
24 locate -r conf$ | grep cups
25 sudo find / -name "*.conf"
26 sudo find / -name "*.conf" | wc -l
27 locate -r conf$ | wc -l
28 sudo find / -name "*.conf" | -size +2k
29 sudo find / -name "*.conf" -size +2k
30 sudo find / -name "*.conf" -size +2k -mtime +30
31 sudo find / -name "*.conf" -size +2k -mtime +90
32 sudo find / -name "*.conf" -size +2k -mtime +5
33 sudo find / -name "*.conf" -mtime +5
34 sudo find / -name "*.conf" -size +2k
35 sudo find / -name "*.conf" -size +2k | wc -l
36 sudo find / -name "*.conf" -size +2k -exec ls -ltrah {} \;




Other Videos By Information Technology


2022-12-12Children
2022-12-12I passed the Linux+ certification exam from CompTIA
2022-11-08Launch EC2 From AWS Lambda - This was done using an AWS Academy Learner Lab Account
2022-10-13Create Random Files in Learners Home Directories
2022-10-13Create 90 SFTP Only Users With a Single Command
2022-10-13Setting up a chrooted sftponly system for users in a specific group
2022-10-13Understanding Network Connections and installing Cups - Why do we print so much, arg! EC2 Metadata
2022-10-13Setup and Apache Web Server on AWS EC2
2022-10-13Systems Administrators Should Learn From Others Mistakes - Look at Standards
2022-10-13Playing with Split, Cat and Diff in linux using AWS
2022-09-23Finding files in linux and then doing something with that information (locate, find, updatedb, exec)
2022-09-22Linux Cut, Paste, Sort, Uniq, Tr, and Egrep - lets play
2022-09-22Cost of EC2 in AWS and touching on how to learn Regular Expressions
2022-09-22Getting ready to certify in Amazon Web Services (AWS)... Watch this video to get some tips
2022-09-19Setup a StarBound server in AWS on ubuntu
2022-09-15Some great features of the Canvas LMS and my course setup best practices
2022-09-15Linux combing and compressing (zipping) with tar. Simple reports with xargs and gpg for encryption
2022-09-13Creating links in Linux with a little intro to inodes and mounts
2022-09-13More on linux file permissions and login scripts. Added bonus of making a file unable to be deleted
2022-09-13Working with Linux file permissions and ownership chmod, chown, and chgrp
2022-09-12How to move a file up to a remote linux system with scp