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/08/20 09:50] – mike | helpful_ubuntu_commands [2026/02/07 09:29] (current) – mike | ||
|---|---|---|---|
| Line 48: | 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 === | ||
| Line 102: | Line 105: | ||
| Then proceed to format the new drive, i.e. **mkfs -t ext4 /dev/sdb1** | Then proceed to format the new drive, i.e. **mkfs -t ext4 /dev/sdb1** | ||
| - | ==== Changing the server' | + | ==== Updating Network Settings ==== |
| + | |||
| + | === Changing the server' | ||
| sudo vi / | sudo vi / | ||
| find the existing IP and change it to the desired IP; ' | find the existing IP and change it to the desired IP; ' | ||
| sudo netplan apply | sudo netplan apply | ||
| | | ||
| - | ==== Changing the server' | + | === Changing the server' |
| hostnamectl set-hostname [new host name] | hostnamectl set-hostname [new host name] | ||
| | | ||
| + | === Changing the server' | ||
| + | Edit the **/ | ||
| + | Apply the changes with the **sudo netplan apply** command | ||
helpful_ubuntu_commands.1755708630.txt.gz · Last modified: by mike
