Skip to content

Instantly share code, notes, and snippets.

@G6t9f6O
G6t9f6O / usb.txt
Created June 17, 2020 17:52 — forked from yufengwng/usb.txt
Commands for managing usb devices
view device filesystems
$ lsblk -f
view devices
$ udiskctl status
view device info
$ udiskctl info -b /dev/<id>
mount partition
@G6t9f6O
G6t9f6O / arch_cheatsheet.txt
Created June 17, 2020 17:49 — forked from yufengwng/arch_cheatsheet.txt
Arch Linux Commands Cheatsheet
pacman
======
view logs: /var/log/pacman.log
update system
# pacman -Syu
list installed packages
# pacman -Q
@G6t9f6O
G6t9f6O / iptables_rules.sh
Created April 28, 2020 21:26 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP