Difference between revisions of "Command Line Useful Commands"
Jump to navigation
Jump to search
(Created page with "== Grep == grep string_to_search path -l It outputs the file names, no the text in that line") |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | =Command Line Cheat Sheet= | ||
+ | A collection of useful command line commands:<br> | ||
+ | https://hjfkgasjkgfahjgfjh.senteryourname.com/index.php/Cheat_Sheet | ||
== Grep == | == Grep == | ||
Line 4: | Line 7: | ||
-l It outputs the file names, no the text in that line | -l It outputs the file names, no the text in that line | ||
+ | |||
+ | |||
+ | == Wc == | ||
+ | |||
+ | Command for counting | ||
+ | |||
+ | grep string_to_search path | wc -l | ||
+ | |||
+ | It counts how many lines in that files/s have that string | ||
+ | [[Category:Programming]] |
Latest revision as of 16:15, 18 November 2022
Command Line Cheat Sheet
A collection of useful command line commands:
https://hjfkgasjkgfahjgfjh.senteryourname.com/index.php/Cheat_Sheet
Grep
grep string_to_search path
-l It outputs the file names, no the text in that line
Wc
Command for counting
grep string_to_search path | wc -l
It counts how many lines in that files/s have that string