linux-survival
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux-survival [2026/05/13 12:33] – [Useful commands & programs] jonas | linux-survival [2026/05/13 12:52] (current) – jonas | ||
|---|---|---|---|
| Line 117: | Line 117: | ||
| ls ~ | ls ~ | ||
| </ | </ | ||
| + | |||
| + | %%|%% Pipe symbol | ||
| + | |||
| + | A //pipe// in Linux is a connection between two programs or commands - it basically acts as a " | ||
| + | |||
| + | < | ||
| + | # print out the strings (text data) in the file mydicom.IMA and display it one page at a time using more | ||
| + | strings mydicom.IMA | more | ||
| + | </ | ||
| + | |||
| + | |||
| Line 343: | Line 354: | ||
| find ~/ " | find ~/ " | ||
| </ | </ | ||
| - | == grep - find text in a file == | ||
| - | Syntax: | + | == strings - extract text from a binary file == |
| - | <code sh> | + | |
| + | Syntax: | ||
| + | < | ||
| + | # Print out all strings in a DICOM file called mydicom.IMA | ||
| + | strings mydicom.IMA | ||
| + | |||
| + | == grep - find strings matching pattern in a text file == | ||
| + | |||
| + | Syntax: grep <text pattern> < | ||
| + | <code sh> | ||
| + | # Find the string jonas in the file passwords.txt | ||
| + | grep jonas passwords.txt | ||
| </ | </ | ||
| == sort - sort text == | == sort - sort text == | ||
linux-survival.1778675621.txt.gz · Last modified: 2026/05/13 12:33 by jonas