helpful_ubuntu_commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| helpful_ubuntu_commands [2025/07/20 10:04] – [Helpful Ubuntu/Linux Commands and Procedures] mike | helpful_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 < | ||
| | | ||
| === 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
