User Tools

Site Tools


useful:linux-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
useful:linux-commands [2023/05/19 19:14] adminuseful:linux-commands [2024/07/23 16:19] (current) admin
Line 38: Line 38:
  
      find ~/public_html/my_website/pages -type f -exec sed -i 's/2017/2018/g' {} \;      find ~/public_html/my_website/pages -type f -exec sed -i 's/2017/2018/g' {} \;
 +     
 +===== Search within specific file type =====
 +
 +     grep -ir removed --include="*.txt" .
 +     
 +will search files with extension .txt ignoring case (-i)
            
 ===== Bluetooth ===== ===== Bluetooth =====
Line 44: Line 50:
  
      bluetoothctl      bluetoothctl
 +     
 +===== Limiting journal log size =====
 +
 +Edit the file:
 +
 +     /etc/systemd/journald.conf
 +     
 +and set SystemMaxUse, for example
 +
 +     SystemMaxUse=250M
 +
 +Then restart journal with:
 +
 +     systemctl restart systemd-journald
 +     
useful/linux-commands.1684523694.txt.gz · Last modified: 2023/05/19 19:14 by admin