cp -avr /source /target
-a : Preserve the specified attributes such as directory an file mode, ownership, timestamps, if possible additional attributes: context, links, xattr, all.
-v : Explain what is being done.
-r : Copy directories recursively.
sudo hddtemp /dev/sd{a,b,c,d,e,f,g,h,i}
sudo apt-get install openssh-server openssh-client
Remember that a file system cannot be in use when it is unmounted, otherwise umount will give an error. If you know it is safe to unmount a file system you can use:
mount
sudo mount /dev/sda1 /mnt
umount
sudo umount -l /mountpoint
power off
udisksctl power-off -b /dev/sda
eject
sudo eject /dev/hdc
sudo hdparm -Tt /dev/sda
#install
sudo apt install sysstat
#run, 10 means seconds
iostat -d 10 /dev/sda1
#install
sudo apt install lm-sensors
#detect
sudo sensors-detect
#run service
sudo service kmod start
#get temperature
sensors
>pstree
netstat -plntu
sudo apt remove package* --purge
#remove all auto installed dependencies
sudo apt autoremove
#remove some directories
rm -r -f /var/lib/mongodb/
rm -r -f /var/log/mongodb/
sudo apt-get install lm-sensors
sudo sensors-detect
sudo service kmod start
sensors
sudo apt-get install fancontrol
Use Samba, the sharing file can be accessed from both windows and mac.
#install
sudo apt-get install samba
#configure a user name
sudo smbpasswd -a andrewzhu
now configure the share folder
sudo vim /etc/samba/smb.conf
update the config file with the following content
[<folder_name>]
path = /home/<user_name>/<folder_name>
available = yes
valid users = <user_name>
read only = no
browsable = yes
public = yes
writable = yes
restart the samba service
sudo service smbd restart
now, in windows or mac, you can input the ip address of the computer to view the share folder
Use rtorrent
https://www.linuxtechi.com/rtorrent-command-line-bittorrent-client-ubuntu-linux/
Use magnet
http://snarvaez.poweredbygnulinux.com/libertad/index.php/2013/05/10/download-magnet-links-with-rtorrent-from-command-line/
Use deluge
Use amule
https://wiki.debian.org/aMule
here is the solution:
It is likely that you have installed (for example) armhf cross tools (compiler, linker, etc.) that add armhf as foreign architecture. You can verify this by running:
>dpkg --print-foreign-architectures
You can remove the foreign architecture by running:
sudo dpkg --force-architecture --remove-architecture armhf
https://askubuntu.com/questions/543722/apt-get-searching-for-binary-armhf-with-intel-i7-cpu