Merge branch 'master' of https://github.com/Aayush-Kasurde/cheat into Aayush-Kasurde-master

* 'master' of https://github.com/Aayush-Kasurde/cheat:
  Added perforce commands
  Added udisksctl
  Added Journalctl commands
  Added zoneadm commands
This commit is contained in:
Chris Lane 2015-02-09 18:03:28 -05:00
commit cd465ef84f
4 changed files with 49 additions and 0 deletions

View file

@ -19,3 +19,14 @@ journalctl /usr/bin/dbus-daemon
# Filter by PID # Filter by PID
journalctl _PID=123 journalctl _PID=123
# Filter by Command, e.g., sshd
journalctl _COMM=sshd
# Filter by Command and time period
journalctl _COMM=crond --since '10:00' --until '11:00'
# List all available boots
journalctl --list-boots
# Filter by specific User ID e.g., user id 1000
journalctl _UID=1000

5
cheat/cheatsheets/p4 Normal file
View file

@ -0,0 +1,5 @@
# Print details related to Client and server configuration
p4 info
# Open a file and add it to depot
p4 add <filename>

View file

@ -0,0 +1,11 @@
# Get info about block device
udisksctl info -b <block_device>
# Mounting device
udisksctl mount --block-device <block_device>
# Unmounting device
udisksctl unmount --block-device <block_device>
# Get help
udisksctl help

22
cheat/cheatsheets/zoneadm Normal file
View file

@ -0,0 +1,22 @@
# Halt zone
zoneadm -z <zone_name> halt
# Delete Zone
zoneadm -z <zone_name> halt
zoneadm -z <zone_name> uninstall
# Verify Zone
zoneadm -z <zone_name> verify
# Installing Zone
zoneadm -z <zone_name> install
# Boot Zone
zoneadm -z <zone_name> boot
# Reboot Zone
zoneadm -z <zone_name> reboot
# List Zones
zoneadm list -cv