Difference between revisions of "Useful Linux commands"

From Chuckipedia
Jump to: navigation, search
(Created page with "== grep == <code> grep -nr 'yourString*' . </code> The dot at the end searches the current directory. Meaning for each parameter: <pre> -n Show relative line num...")
 
Line 12: Line 12:
 
-r            Recursively search subdirectories listed
 
-r            Recursively search subdirectories listed
 
.            Directory for search (current directory)
 
.            Directory for search (current directory)
 +
</pre>
 +
 +
== FreeBSD ==
 +
 +
* su:
 +
<pre>
 +
    The su utility requests appropriate user credentials via PAM and switches
 +
    to that user ID (the default user is the superuser).  A shell is then
 +
    executed.
 
</pre>
 
</pre>

Revision as of 15:52, 26 October 2018

grep

grep -nr 'yourString*' .

The dot at the end searches the current directory. Meaning for each parameter:

-n            Show relative line number in the file
'yourString*' String for search, followed by a wildcard character
-r            Recursively search subdirectories listed
.             Directory for search (current directory)

FreeBSD

  • su:
     The su utility requests appropriate user credentials via PAM and switches
     to	that user ID (the default user is the superuser).  A shell is then
     executed.