This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pacman | |
====== | |
view logs: /var/log/pacman.log | |
update system | |
# pacman -Syu | |
list installed packages | |
# pacman -Q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar | |
=== | |
create new gunzipped tar | |
$ tar cvzf <name>.tar.gz file <files> | |
extract from gunzipped tar | |
$ tar xvzf <name>.tar.gz | |
list contents of gunzipped tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
view device filesystems | |
$ lsblk -f | |
view devices | |
$ udiskctl status | |
view device info | |
$ udiskctl info -b /dev/<id> | |
mount partition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ZSH completion script for doctl. | |
# | |
# This takes bach completion and converts it to support zsh. | |
# Inspired by [kubectl][kc] and [opencompose][oc], the bash | |
# part is from [@andewsomething][as-gist]. | |
# | |
# [kc]: https://github.com/kubernetes/kubernetes/blob/9dec47d/pkg/kubectl/cmd/completion.go | |
# [oc]: https://github.com/redhat-developer/opencompose/blob/master/pkg/cmd/completion.go | |
# [as-gist]: https://gist.github.com/andrewsomething/7ba993a7f7897936c6946ffed2f1edc6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -si https://ipinfo.io |