Last active
June 20, 2019 04:30
-
-
Save darcwader/5d6d6b8157524259d43039ebff91d881 to your computer and use it in GitHub Desktop.
linux commands tips and tricks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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