Ubuntu – how to find hard drive brand name or model?
$ udisksctl status
Iordanis Kazanas – Virtual Systems Administrator
$ udisksctl status
sudo dpkg –configure -a sudo apt install -f –reinstall python3-minimal sudo apt install -f –reinstall python3-pip
sudo tee /etc/wsl.conf > /dev/null << EOF [network] generateResolvConf=false EOF rm /etc/resolv.conf echo -e ‘nameserver 8.8.8.8\nnameserver 8.8.4.4’ | sudo tee /etc/resolv.conf > /dev/null; sudo chattr -f +i /etc/resolv.conf;
Delete first line of a large file. Install Cygwin for windows. tail -n +2 “$FILE” > “$FILE2”
How to install full version of Vim on Ubuntu $ sudo apt remove –assume-yes vim-tiny $ sudo apt update $ sudo apt install –assume-yes vim
mkdir /mnt/cdrom mount /dev/cdrom/ /mnt/cdrom/ sudo apt-cdrom -m -d /media/cdrom add sudo apt-cdrom -m -d /media/cdrom add cat /etc/apt/sources.list
You cannot repair sda because it is mounted. # fsck -nf /dev/sda1 fsck from util-linux 2.27.1 e2fsck 1.42.13 (17-May-2015) Warning! /dev/sda1 is mounted. Warning: skipping journal recovery because doing a read-only filesystem check. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts … Read more
http://ipv6-or-no-ipv6.blogspot.ca/2013/06/use-netstat-to-show-ipv4-versus-ipv6.html If you wonder how much IPv6 versus IPv4 traffic your system does, there is an nice estimation: use “netstat -s” to show the amount of inbound packets. Packets is not the same as bytes, but assuming the IPv4 packets have the same mean size as IPv6 packets, you’re fine. The exact commands are: netstat … Read more
Permissions and ownership errors – A 403 Forbidden error can also be caused by incorrect ownership or permissions on your web content files and folders. Rule of thumb for correct permissions: Folders: 755 Static Content: 644 Dynamic Content: 700 Linux permissions can be represented with numbers, letters, or words. They also include an entry for … Read more