Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Linux

know about info of linux server

$ cat /etc/os-release
$ cat /etc/redhat-release

find

$ find {target_directory} -name {target_file} -type f -print0 | xargs -0 grep {keyword}

e.g

# 1. current directory: find 'hoge' with 'foo*'(file)
$ find . -name 'foo*' -type f -print0 | xargs -0 grep {keyword}

# 2. current directory: find 'hoge' with the '.txt' extension files
$ find . -name '*.txt' -print0 | xargs -0 grep {keyword}

# 3. /var/log: find 'hoge'
$ find /var/log -type f -print0 | xargs -0 grep {keyword}

cat

$ cat [-belnstuv] [file ...]

zip

Encryption

$ zip -e -r {name_filedir}.zip {dir}/