Skip to content

10.Linux(Find, Backup Script)

Agnivo102 edited this page Dec 28, 2025 · 3 revisions

find /home/agnivo/ -type f -name f01

find /home/agnivo/ -type d -name f01

If don't know the location.

find / -type f -name f01

image

Too many error messages as in root directory I don't have permission to view. So we will redirect all those error messages to a file.

find / -type f -name f01 2>null

image

The error messages are redirected to a file. 2 represent error messages and 1 represent all the values returned.

date +%Y%m%d : Format for date to able to use a s a string.

image

Backup Script

image

Clone this wiki locally