oneliner

Oneliners

Misc Oneliners set default branch to main git config --global init.defaultBranch main bash - check multiple files [ -f /etc/resolv.conf -a -f /etc/hosts ] && echo "Both files exist" || echo "One or Both Files are missing" remove word ’nosuid’ on the line /var in /etc/fstab sed -E -i.bak 's/(.*\/var.*)(,nosuid)(.*)/\1\3/' /etc/fstab macos show hidden files defaults write com.apple.finder AppleShowAllFiles -boolean true; killall Finder or CMD + SHIFT + . macos hide hidden files defaults write com.