Linux намерите вашите файлове

Примерен код

15
0

намиране на текст в папка

grep -rnw '/path/to/somewhere/' -e 'pattern'
8
0

как да се намери файл в Linux терминала.

find /path/to/folder/ -iname *file_name_portion*
1
0

linux намерете файл, съдържащ текст

# syntax 
# find *</path/to/dir> -name '*<file(s)-to-search>' -exec grep '*<string-to-find>' {} /dev/null \;

# example
find 'C:/Users/JacquesK' -name '*.*' -exec grep 'Random text to find' {} /dev/null \;
1
0

намиране на текст във файл linux

grep 'word' filename
grep 'word' file1 file2 file3
grep 'string1 string2'  filename
cat otherfile | grep 'something'
command | grep 'something'
command option1 | grep 'data'
grep --color 'data' fileName
1
0

намери във файла linux

grep -rnw '/path/to/somewhere/' -e 'pattern'
0
0

търсене на файлове в Linux терминала.

find /path/to/folder/ -iname *file_name_portion*

#Example
find / -iname *test*

#Output

/downloads/test_2.txt
/downloads/test_1.csv
/home/ubuntu/first_test.txt

Подобни страници

Подобни страници с примери

На други езици

Тази страница на други езици

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Íslensk
..................................................................................................................