Uwe Arzt

Commandline Tips

Here is a collection of commands i use often for cut&paste.

ssh

Force password authentication (i use this with a pssh alias)

ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no -o PasswordAuthentication=yes user@host

git/github

command
git status --ignoredshow ignored files too
git clean -f -dremove all untracked files and directories
git log --oneline --graph --color --all --decoratenice commandline commit graph
git remote -vshow remotes
git remote add upstream remoteurladd additional remote
git fetch upstreamfetch the upstream changes (repo forked from)
git merge upstream/mastermerge the upstream changes (repo forked from)

filesystem

get the UUID for a filesystem

blkid /dev/sdb1

ZFS

descriptioncommandexample
create snapshotzfs snapshot [pool]@[name]zfs snapshot data@2021_04_22
delete snapshotzfs destroy [pool]@[name]zfs destroy data@2021_04_22
list snapshotszfs list -t snapshot

systemd

check status

systemctl status [myservice].service

enable at system (re)start

systemctl enable [myservice].service

WOL

wakeonlan -i 192.168.20.255 AC:87:A3:19:BF:D9
Article created . Comment on this post!