netstat -tulpen
import -window root screenshot.jpg
https://wiki.archlinux.org/index.php/Screen_capture_(Espa%C3%B1ol)
https://unix.stackexchange.com/questions/209746/how-to-resolve-no-protocol-specified-for-su-user
https://github.com/polybar/polybar/wiki
https://www.youtube.com/watch?v=nSHOb8YU9Gw
https://bbs.archlinux.org/viewtopic.php?id=165549
https://www.youtube.com/watch?v=Es79N_9BblE
sudo rm /var/lib/pacman/db.lck
sudo chown <user>:<user> <direcotory or file>
sudo blkid
dmesg
w
or who
users
last
lastlog
journalctl -u <service name>
df -h
Also, you can use:
duf
Needs to install duf.
ls <PATH> | less
gotop
Needs to install gotop.
locate
Needs to install locate.
sudo passwd
sudo vim /etc/default/grub
history
inxi -Gxx | grep compositor
where -G
Grafic info xx
Show extra info
pulseaudio --start --verbose
start-pulseaudio-x11
xbacklight -set (value)
https://www.reddit.com/r/i3wm/comments/3a6nh3/help_how_to_use_function_keys_in_i3_config/
https://addy-dclxvi.github.io/post/configuring-urxvt/
xrdb ~/.Xresources
useradd -m <username>
https://forum.manjaro.org/t/failing-to-change-font-for-urxvt/104672/3
move to /usr/share/fonts
fc-cache
fc-list | grep <font-name>
font-<number> = "<font-name>:style=Regular,size=8;2"
https://www.reddit.com/r/SolusProject/comments/8qlkbm/images_in_neofetch/
https://www.reddit.com/r/i3wm/comments/87kclz/how_do_i_remove_borders_and_titles/
https://erikdubois.be/how-to-change-the-size-of-the-gaps-between-the-windows-in-i3/
https://bbs.archlinux.org/viewtopic.php?id=117543
https://github.com/adi1090x/polybar-themes https://www.reddit.com/r/archlinux/comments/b2ox2t/siji_font_with_polybar_dropping_characters/
https://forum.archlabslinux.com/t/rofi-theming-tips/699
https://www.reddit.com/r/archlinux/comments/apqnhr/ugly_graph_in_gotop/
https://github.com/dylanaraps/pywal/blob/master/pywal/templates/colors-rofi-dark.rasi https://github.com/dylanaraps/pywal/wiki/Customization#rofi
showkey
xev
https://wiki.archlinux.org/index.php/Xorg/Keyboard_configuration
inxi -B
(it needs inxi installed)
smartctl -a /dev/sda
Needs smartmontools
smartctl long /dev/sda
Needs smartmontools
sudo tlp start
sudo tlp stat
sudo vim /sys/class/power_supply/BAT0/change_stop_threshold
- Mount the USB:
mount /dev/sdb1 /mnt/usb
- Unmount the USB:
umount /mnt/usb
rsync -av --delete /Directory1/ /Directory2/
(from Directory1 to Directory2)
sudo rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /path/to/backup/folder
sudo dd bs=4M if=/path/to/archlinux.iso of=/dev/sdX status=progress oflag=sync
(NO NUMBER)
df --total -h
du -sh /path/to/folder
- Know the name:
lsblk
- Unmont it:
umount /dev/sdb1
- Format it:
sudo mkfs.vfat /dev/sdb1
//sudo mkfs.ntfs /dev/sdb1
//sudo mkfs.ext4 /dev/sdb1
https://dottheslash.wordpress.com/2011/11/29/deleting-all-partitions-on-a-usb-drive/
sudo shutdown -P +60
// sudo shutdown -P 1:00
// sudo shutdown -c
xrandr -s 1920x1080
cat /etc/shells
chsh <user> /bin/<shell>
curl ipinfo.io
(the info is displayed on a website and then you get the info from there)
umount /dev/sda4
e2fsck -f /dev/sda4
resize2fs /dev/sda4 200G
gdisk /dev/sda
(delete partition and create a new one of the same size that the filesystem)
(the same as shrinking but you first resize the partition and then the filesystem)
mount /dev/sda3 /rescue
mount /dev/sda4 /rescue/home
mount /dev/sda2 /rescue/boot
mount /dev/sda5 /rescue/efi
mount -t proc proc /rescue/proc
mount -t sysfs sys /rescue/sys
mount -o bind /dev /rescue/dev
mount -t devpts pts /rescue/dev/pts
chroot /rescue
mount --bind /sys/firmware/efi/efivars /rescue/sys/firmware/efi/efivars
partprobe /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
- Edit fstab
groupadd sharedusers -g 2000
chown [your_user_name]:sharedusers -R /home/artur/shared
vim /etc/hostname
vim /etc/hosts
speedtest-cli
hwinfo
(hardware)lspci
(peripheral components)uname
(basic system information)
alsactl restore
ps -aux
sleep 1h && mplayer /path/to/music.mp3
geekbench
xprop | grep WM_CLASS | awk '{print $4}'
(and click on the window)
sudo pacman -Syy
Update my system -S
Sync package -y
download fresh package database -yy
Forces download even if it is up to date
sudo pacman -Syu
Upgrade my system. If you do Sudo pacman -Syu <package>
you only upgrade that one package.
sudo pacman -Ss <pkg>
Search one package in arch repo
sudo pacman -Si <pkg>
Search one package with all his dependences
sudo pacman -S <pkg>
Download and install one package
sudo pacman -Sw <pkg>
Download without install one package. It is stored in /var/cache/pacman/pkg
sudo pacman -U <path>
Install local packages in that path
sudo pacman -U <url>
Install package from that URL
sudo pacman -Qnq | pacman -Syu -
Reinstall all installed packages
sudo pacman -R <pkg>
Unistall one package
sudo pacman -Rsun <pkg>
Unistall package and his not used dependencies. -n
Ignores backups -s
Recursively -u
Remove not required packages
sudo pacman -Qi <pkg>
Show info about package and his dependencies
sudo pacman -Ql <pkg>
List installed packages
sudo pacman -Q <pkg> >> complete_list.txt
List installed packages in a generated .txt
sudo pacman -Qet
List installed packages not used by other packages
sudo pacman -Qe | awk '{print $1}'
Print list of installed packages not used by other packages but only displaying his names
sudo pacman -Sc
Clean pacman cache
sudo pacman -Scc
Clean pacman cache twice
sudo paccache -r
Also clean cache
sudo pacman -Rs $(pacman -Qtdq)
Delete orphan packages
Main config location: /etc/pacman.conf
Cache file location: /var/cache/pacman/pkg
Database location: /var/log/pacman.log
- Monitoring: Gotop
- Music Player: Cmus
- RSS Feed Reader: Canto
- File Manager: Ranger
- Launcher: Rofi