User Tools

Site Tools


helpful_ubuntu_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
helpful_ubuntu_commands [2025/07/20 10:04] – [Helpful Ubuntu/Linux Commands and Procedures] mikehelpful_ubuntu_commands [2025/12/06 10:01] (current) mike
Line 24: Line 24:
 === Changing default editor for visudo === === Changing default editor for visudo ===
   sudo update-alternatives --config editor   sudo update-alternatives --config editor
 +
 +If visudo complains about a missing defaults.vim file, it can be fixed thusly:
 +  sudo touch ~root/.exrc
      
 === Disable GUI screen lock === === Disable GUI screen lock ===
Line 45: Line 48:
 === Find the oldest file in a directory (and it's subdirectories) === === Find the oldest file in a directory (and it's subdirectories) ===
   find . -type f -printf '%T+ %p\n' | sort | head -n 1   find . -type f -printf '%T+ %p\n' | sort | head -n 1
 +  
 +=== Finding files by file name (or file name portion) ===
 +  find . -iname <filename to search for>  
      
 === Disable colors in the vi editor by default === === Disable colors in the vi editor by default ===
helpful_ubuntu_commands.1753031087.txt.gz · Last modified: by mike

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki