Skip to content

Instantly share code, notes, and snippets.

@darcwader
Last active June 20, 2019 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darcwader/5d6d6b8157524259d43039ebff91d881 to your computer and use it in GitHub Desktop.
Save darcwader/5d6d6b8157524259d43039ebff91d881 to your computer and use it in GitHub Desktop.
linux commands tips and tricks
# don't ask sudo password anymore for $USER.
sudo sh -c 'echo "$USER ALL=NOPASSWD:ALL" >> /etc/sudoers'
# broken volume due to windows effing
sudo ntfsfix /dev/sda8
# information about GPU card
inxi -Gx
# information about nvidia driver installed
sudo dkms status | grep nvidia
# fast search file in filesystem
locate -e libcuda.so
#boot into textmode, or any runlevel
sudo telinit 3
# information about partitions
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
# watch . recently discover this mazing gen of command.
# count the number of files
watch -n 1 "ls -l | wc -l"
# console font configure
sudo dpkg-reconfigure console-setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment