Skip to content

Instantly share code, notes, and snippets.

@sahilseth
Last active September 4, 2023 22:10
Show Gist options
  • Save sahilseth/1804b20bcf6ddd408222c8f2a2a85dda to your computer and use it in GitHub Desktop.
Save sahilseth/1804b20bcf6ddd408222c8f2a2a85dda to your computer and use it in GitHub Desktop.
Linux Tips
## cursor size:
settings >> universal access
@sahilseth
Copy link
Author

installing sonos

search noson in ubuntu apps

@sahilseth
Copy link
Author

cursor size

settings >> universal access

@sahilseth
Copy link
Author

sahilseth commented Mar 2, 2020

kybd shortcuts

terminal:

  • paste: you can either use Ctrl+Shift+V or use your mouse's middle click if there is one.
  • copy: you can either use Ctrl+Shift+C or use your mouse to select the text of interest and then use its middle click to paste it.

@sahilseth
Copy link
Author

unix mail

delete

mail
# You'll see a list of all your messages. From the mail prompt, do
? delete *
? q

@sahilseth
Copy link
Author

sahilseth commented Sep 3, 2023

check disk space

skip mounts

# -x skips mounted file systems
# BM size in a way sort can work
sudo du -shxBM * | sort -n

even after deleting some procs might be holding onto files:

https://serverfault.com/questions/232525/df-in-linux-not-showing-correct-free-space-after-file-removal

lsof +L1

@sahilseth
Copy link
Author

find procs using a mount

lsof | grep /media/whatever

@sahilseth
Copy link
Author

disks

number and strategy on the disks

sudo lshw -class disk -short

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment