Note Dump – Linux Tips & Tricks


Raw data dump from my Simplenote. Figure someone may find these useful. From when I started Linux until now. 

Linux Tips and tricks commands

#Find all groups to a specific user
getent group | grep $USER

Find application file executable
– sudo apt install apt-file
– sudo apt-file update
– apt-file search (appname)

– Use top to get the running processes and PID

Woeusb to make a windows bootable usb in Linux

Set default browser
xdg-settings set default-web-browser google-chrome.desktop

Nvidia settings
sudo nvidia-xconfig
sudo nvidia-settings
This creates a xorg file first

Chrome – turn off smooth scrolling
chrome://flags/#smooth-scrolling

Terminal:
$ ls -al  : displays hidden files vs just ls command

 $ cp (copy command to move files)
cp /home/rits/Desktop/folder1/name_of_textfile /home/rits/Desktop/folder2/

SSD TRIM
sudo fstrim -v /

Encryption Workaround
encryptfs-unwrap-passphrase

Add Permissions to external drive
sudo chown -hR dasgeek /media/dasgeek

/media/dasgeek if where drive is mounted by default
dasgeek if that is username

Latest Firefox install
sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt update && sudo apt upgrade

Aptitude
– Install ‘aptitude’
– Terminal interface for all aptitude packages for system administration
– ‘/’ to search
– ‘q’ to quit
Add ‘Mugshot’ to customize whisker menu picture

Profile hardware and drivers in terminal
lspci
lspci -v

Wifi detect
lspci -vnn -d 14e4:

sudo dd bs=4M if=archmerge-v6.2.1-2017.11.28.iso of=/dev/sde

Arch
Install driver
nvidia-xconfig
Yaourt nvidia-settings

Use netdata in Arch
– install netdata via pamacmanager
– systemctl start netdata
– – go to http://localhost:19999/. in browser
sudo killall netdata-

lshw [options]

And here’s how the man page explains the tool:

      lshw  is  a  small tool to extract detailed information on the hardware
      configuration of the machine. It can report exact memory configuration,
      firmware version, mainboard configuration, CPU version and speed, cache
      configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems  and
      on some PowerPC machines (PowerMac G4 is known to work).

      It  currently  supports  DMI  (x86 and IA-64 only), OpenFirmware device
      tree (PowerPC only), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA  (only
      tested on x86), SCSI and USB.man

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *