Difference between revisions of "Linux commands"

From TheAlmightyGuru
Jump to: navigation, search
 
Line 1: Line 1:
 
This is a list of helpful [[Linux]] commands.
 
This is a list of helpful [[Linux]] commands.
  
List files in the current directory (similar to dir in DOS).
+
List files in the current directory (similar to dir in DOS):
 
  ls
 
  ls
  
 
Print the external IP address of the server:
 
Print the external IP address of the server:
 
  <nowiki>wget http://ipecho.net/plain -O - -q ; echo</nowiki>
 
  <nowiki>wget http://ipecho.net/plain -O - -q ; echo</nowiki>
 +
 +
Find a file anywhere and ignore permission denied:
 +
find * -name filename -print 2>/dev/null
  
  
 
[[Category: Computer Guides]]
 
[[Category: Computer Guides]]

Latest revision as of 13:30, 2 October 2020

This is a list of helpful Linux commands.

List files in the current directory (similar to dir in DOS):

ls

Print the external IP address of the server:

wget http://ipecho.net/plain -O - -q ; echo

Find a file anywhere and ignore permission denied:

find * -name filename -print 2>/dev/null