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@hostgit/github
| command | |
|---|---|
| git status --ignored | show ignored files too |
| git clean -f -d | remove all untracked files and directories |
| git log --oneline --graph --color --all --decorate | nice commandline commit graph |
| git remote -v | show remotes |
git remote add upstream remoteurl | add additional remote |
| git fetch upstream | fetch the upstream changes (repo forked from) |
| git merge upstream/master | merge the upstream changes (repo forked from) |
filesystem
get the UUID for a filesystem
blkid /dev/sdb1ZFS
| description | command | example |
|---|---|---|
| create snapshot | zfs snapshot [pool]@[name] | zfs snapshot data@2021_04_22 |
| delete snapshot | zfs destroy [pool]@[name] | zfs destroy data@2021_04_22 |
| list snapshots | zfs list -t snapshot |
systemd
check status
systemctl status [myservice].serviceenable at system (re)start
systemctl enable [myservice].serviceWOL
wakeonlan -i 192.168.20.255 AC:87:A3:19:BF:D9
Article created .
Comment on this post!