Rds

aws rds describe-db-instances

Returns information about provisioned RDS instances.

aws rds describe-db-instances

Cloudformation

aws cloudformation deploy

Deploys an AWS CloudFormation template by creating and then executing a change set.

aws cloudformation deploy

Ec2

aws ec2 start-instances

Starts an Amazon EBS-backed instance that you've previously stopped.

aws ec2 start-instances
aws ec2 stop-instances

Stops an Amazon EBS-backed instance.

aws ec2 stop-instances
aws ec2 describe-instances

Describes one or more of your instances.

aws ec2 describe-instances

Iam

aws iam list-users

Lists the IAM users that have the specified path prefix.

aws iam list-users

Lambda

aws lambda list-functions

Returns a list of your Lambda functions.

aws lambda list-functions

S3

aws s3 cp

Copies a local file or S3 object to another location.

aws s3 cp
aws s3 sync

Syncs directories and S3 prefixes. Recursively copies new and updated files.

aws s3 sync

Configuration

az login

Log in to Azure.

az login
az account set

Set a subscription to be the current active subscription.

az account set

Resource Group

az group list

List resource groups.

az group list
az group create

Create a new resource group.

az group create

Virtual Machine

az vm list

Get the details of the virtual machines.

az vm list
az vm create

Create an Azure Virtual Machine.

az vm create
az vm start

Start a stopped virtual machine.

az vm start
az vm stop

Stop a running virtual machine.

az vm stop

Storage

az storage account list

List storage accounts.

az storage account list
az storage blob list

List blobs in a given container.

az storage blob list

Active Directory

az ad user list

List users in Azure Active Directory.

az ad user list

Deployment

az deployment group create

Start a deployment.

az deployment group create

Security

Check SSL Certificate

Check SSL certificate validity

openssl x509 -in certificate.crt -text -noout

Key Generation

openssl genrsa

Generate RSA private key.

openssl genrsa

Certificate Management

openssl req

Generate certificate signing request (CSR).

openssl req
openssl x509

Certificate display and signing utility.

openssl x509
openssl verify

Verify certificate chain.

openssl verify

Keystore Management

openssl pkcs12

PKCS#12 file utility for creating and managing keystores.

openssl pkcs12

Ssl/tls Testing

openssl s_client

SSL/TLS client program for testing connections.

openssl s_client
openssl s_server

SSL/TLS server program for testing.

openssl s_server

Encryption

openssl enc

Encrypt or decrypt files using various algorithms.

openssl enc

Random Generation

openssl rand

Generate random bytes.

openssl rand

Hashing

openssl dgst

Generate message digest (hash) of files.

openssl dgst

Security

Generate SSH Key

Generate SSH key pair

ssh-keygen -t rsa -b 4096 -C '[email protected]'

Image Management

docker images

List images.

docker images
docker build

Build an image from a Dockerfile.

docker build
docker rmi

Remove one or more images.

docker rmi
docker pull

Pull an image or a repository from a registry.

docker pull
docker push

Push an image or a repository to a registry.

docker push

Container Management

docker run

Run a command in a new container.

docker run
docker ps

List containers.

docker ps
docker stop

Stop one or more running containers.

docker stop
docker start

Start one or more stopped containers.

docker start
docker restart

Restart one or more containers.

docker restart
docker rm

Remove one or more containers.

docker rm
docker exec

Run a command in a running container.

docker exec

Monitoring

docker logs

Fetch the logs of a container.

docker logs

Networking

docker network

Manage Docker networks.

docker network

Storage

docker volume

Manage Docker volumes.

docker volume

Key Generation

keytool -genkeypair

Generate a key pair (private key and associated public key certificate).

keytool -genkeypair

Keystore Management

keytool -list

List the contents of a keystore.

keytool -list
keytool -delete

Delete an entry from a keystore.

keytool -delete
keytool -changealias

Change the alias of an entry in a keystore.

keytool -changealias
keytool -importkeystore

Import one or all entries from another keystore.

keytool -importkeystore

Certificate Management

keytool -import

Import a certificate or certificate chain into a keystore.

keytool -import
keytool -export

Export a certificate from a keystore.

keytool -export
keytool -printcert

Print the content of a certificate.

keytool -printcert
keytool -certreq

Generate a certificate signing request (CSR).

keytool -certreq

Password Management

keytool -keypasswd

Change the key password of an entry in a keystore.

keytool -keypasswd
keytool -storepasswd

Change the password of a keystore.

keytool -storepasswd

Networking

iptables

Administration tool for IPv4 packet filtering and NAT.

iptables
ss

Show socket statistics (modern replacement for netstat).

ss
netstat

Print network connections, routing tables, interface statistics.

netstat

System Management

systemctl

Control systemd system and service manager.

systemctl

Logging

journalctl

Query and display messages from the journal.

journalctl

Process Management

top

Display Linux processes in real-time.

top
ps

Report a snapshot of the current processes.

ps

Storage

df

Show disk space usage.

df
du

Estimate file space usage.

du

File Management

find

Search for files in a directory hierarchy.

find

Text Processing

grep

Search for patterns in files.

grep
sed

Stream editor for filtering and transforming text.

sed
awk

Pattern scanning and text processing language.

awk

Resource Management

kubectl get

Display one or many resources.

kubectl get
kubectl apply

Apply a configuration to a resource by filename or stdin.

kubectl apply
kubectl create

Create a resource by filename or stdin.

kubectl create
kubectl delete

Delete resources by filenames, stdin, resources and names, or by resources and label selector.

kubectl delete
kubectl describe

Show details of a specific resource or group of resources.

kubectl describe

Monitoring

kubectl logs

Print the logs for a container in a pod.

kubectl logs
kubectl top

Show resource usage (CPU/memory/storage) for nodes or pods.

kubectl top

Debugging

kubectl exec

Execute a command in a container.

kubectl exec

Networking

kubectl port-forward

Forward one or more local ports to a pod.

kubectl port-forward

Scaling

kubectl scale

Set a new size for a deployment, replica set, or replication controller.

kubectl scale

Deployment

kubectl rollout

Manage the rollout of a deployment.

kubectl rollout

Configuration

kubectl config

Modify kubeconfig files.

kubectl config

File Management

kubectl cp

Copy files and directories to and from containers.

kubectl cp

Configuration

pf-export-config

Export PingFederate configuration to a file.

./pf-export-config
pf-config

Configure PingFederate server settings and properties.

./pf-config
pf-import-config

Import PingFederate configuration from a file.

./pf-import-config

Server Management

pf-admin

PingFederate administrative command-line tool for server management.

./pf-admin
pf-start

Start the PingFederate server.

./pf-start
pf-stop

Stop the PingFederate server gracefully.

./pf-stop
pf-restart

Restart the PingFederate server.

./pf-restart

Monitoring

pf-status

Check the status of PingFederate server.

./pf-status
pf-log

View and manage PingFederate log files.

./pf-log

Backup/restore

pf-backup

Create a backup of PingFederate configuration and data.

./pf-backup
pf-restore

Restore PingFederate from a backup.

./pf-restore

Modify Operations

ldapadd

Add entries to an LDAP directory.

ldapadd
ldapmodify

Modify entries in an LDAP directory.

ldapmodify
ldapdelete

Delete entries from an LDAP directory.

ldapdelete
ldapmodrdn

Modify the RDN of an LDAP entry.

ldapmodrdn

Authentication

ldapwhoami

Perform a whoami operation against an LDAP server.

ldapwhoami

Password Management

ldappasswd

Change the password of an LDAP user.

ldappasswd

Backup/restore

slapcat

Export LDAP database to LDIF format.

slapcat
slapadd

Add entries from LDIF file to LDAP database.

slapadd

Utilities

ldapurl

Parse and format LDAP URLs.

ldapurl

Server Management

pa-admin

PingAccess administrative command-line tool for server management.

./pa-admin
pa-start

Start the PingAccess server.

./pa-start
pa-stop

Stop the PingAccess server gracefully.

./pa-stop
pa-restart

Restart the PingAccess server.

./pa-restart

Configuration

pa-config

Configure PingAccess server settings and properties.

./pa-config
pa-export-config

Export PingAccess configuration to a file.

./pa-export-config
pa-import-config

Import PingAccess configuration from a file.

./pa-import-config

Monitoring

pa-log

View and manage PingAccess log files.

./pa-log
pa-status

Check the status of PingAccess server.

./pa-status

Backup/restore

pa-backup

Create a backup of PingAccess configuration and data.

./pa-backup
pa-restore

Restore PingAccess from a backup.

./pa-restore

Ssl/tls

pa-ssl

Manage SSL certificates and keystores for PingAccess.

./pa-ssl

Server Management

setup

Run the interactive setup process to configure the server for the first time.

./setup
start-server

Start the PingDirectory server.

./start-server
stop-server

Stop the PingDirectory server gracefully.

./stop-server

Data Operations

ldapsearch

Search for entries in the LDAP directory.

ldapsearch --hostname localhost --port 1389 --baseDN "dc=example,dc=com" "(uid=user.0)"
ldapmodify

Modify directory entries using an LDIF file or standard input.

ldapmodify --hostname localhost --port 1389 --bindDN "cn=Directory Manager" --bindPassword password

Import/export

import-ldif

Efficiently import data into the directory from an LDIF file.

import-ldif --backendID userRoot --ldifFile /path/to/data.ldif
export-ldif

Export data from the directory to an LDIF file.

export-ldif --backendID userRoot --ldifFile /path/to/export.ldif
backup

Create a backup of one or more directory backends.

backup --backendID userRoot --backupDirectory /path/to/backups
restore

Restore one or more directory backends from a backup.

restore --backupDirectory /path/to/backup/dir

Configuration

dsconfig

View and manage server configuration settings.

dsconfig --hostname localhost --port 4444 --bindDN "cn=Directory Manager" --bindPassword password --no-prompt

Performance Testing

searchrate

Run a performance test to measure search operation throughput.

searchrate --hostname localhost --port 1389 --baseDN "dc=example,dc=com" --filter "(uid=user.[1-1000])"
authrate

Run a performance test to measure bind operation throughput.

authrate --hostname localhost --port 1389 --bindDN "uid=user.[1-1000],ou=People,dc=example,dc=com" --bindPassword password

Maintenance

rebuild-index

Rebuild a specific index within a backend.

rebuild-index --backendID userRoot --index-type vlv --baseDN "dc=example,dc=com"
compact-db

Reclaim disk space by compacting a backend database.

compact-db --backendID userRoot

Configuration

dsconfig

A text-based management tool used to view and configure the underlying server configuration for PingDirectory.

dsconfig
dsconfig list-properties

List information about all available configuration properties for all objects.

dsconfig list-properties

Backend Configuration

dsconfig set-backend-prop

Modify properties of a backend, such as database cache settings or compaction rules.

dsconfig set-backend-prop

Core

Get-Help

Displays information about PowerShell commands and concepts.

Get-Help
Get-Command

Gets all commands that are installed on the computer, including cmdlets, aliases, functions, and workflows.

Get-Command

Process Management

Get-Process

Gets the processes that are running on the local computer.

Get-Process
Stop-Process

Stops one or more running processes.

Stop-Process

System Management

Get-Service

Gets the services on a local or remote computer.

Get-Service
Get-EventLog

Gets events in the classic event logs of a local or remote computer.

Get-EventLog
Get-WmiObject

Gets instances of Windows Management Instrumentation (WMI) classes. (Legacy, use Get-CimInstance in newer PowerShell versions).

Get-WmiObject
Get-CimInstance

Gets the CIM instances of a class from a CIM server. (Modern replacement for Get-WmiObject).

Get-CimInstance

Security

Set-ExecutionPolicy

Changes the user preference for the PowerShell execution policy.

Set-ExecutionPolicy

File System

Get-ChildItem

Gets the items and child items in one or more specified locations.

Get-ChildItem
Get-Content

Gets the content of the item at the specified location.

Get-Content
Set-Content

Writes new content or replaces the content in a file.

Set-Content
Add-Content

Adds content to a specified item, such as a file.

Add-Content
Test-Path

Determines whether all elements of a path exist.

Test-Path

Networking

Invoke-WebRequest

Gets content from a web page on the Internet.

Invoke-WebRequest
Invoke-RestMethod

Sends an HTTP or HTTPS request to a RESTful web service and parses the response.

Invoke-RestMethod

Repository Management

git init

Initialize a new Git repository in the current directory.

git init
git clone

Clone a repository into a new directory.

git clone
git worktree

Manage multiple working trees attached to the same repository.

git worktree

Staging

git add

Add file contents to the staging area.

git add

Committing

git commit

Record changes to the repository.

git commit

Remote Operations

git push

Upload local repository content to a remote repository.

git push
git pull

Fetch from and integrate with another repository or a local branch.

git pull
git fetch

Download objects and refs from another repository.

git fetch

Branching

git branch

List, create, or delete branches.

git branch
git checkout

Switch branches or restore working tree files.

git checkout

Merging

git merge

Join two or more development histories together.

git merge
git rebase

Reapply commits on top of another base tip.

git rebase
git cherry-pick

Apply the changes introduced by some existing commits.

git cherry-pick

Information

git status

Show the working tree status.

git status
git log

Show commit logs.

git log
git diff

Show changes between commits, commit and working tree, etc.

git diff

Undoing

git reset

Reset current HEAD to the specified state.

git reset
git revert

Create a new commit that undoes the changes from a previous commit.

git revert

Stashing

git stash

Stash the changes in a dirty working directory away.

git stash

Tagging

git tag

Create, list, delete or verify a tag object signed with GPG.

git tag

Submodules

git submodule

Initialize, update or inspect submodules.

git submodule

Debugging

git bisect

Use binary search to find the commit that introduced a bug.

git bisect

Configuration

git config

Get and set repository or global options.

git config

File Management

git clean

Remove untracked files from the working tree.

git clean

Remote Management

git remote

Manage set of tracked repositories.

git remote

User Management

Get-ADUser

Gets one or more Active Directory users.

Get-ADUser
Set-ADUser

Modifies an Active Directory user.

Set-ADUser
New-ADUser

Creates a new Active Directory user.

New-ADUser
Remove-ADUser

Removes an Active Directory user.

Remove-ADUser

Computer Management

Get-ADComputer

Gets one or more Active Directory computers.

Get-ADComputer

Group Management

Get-ADGroup

Gets one or more Active Directory groups.

Get-ADGroup
Get-ADGroupMember

Gets the members of an Active Directory group.

Get-ADGroupMember
Add-ADGroupMember

Adds one or more members to an Active Directory group.

Add-ADGroupMember

Ou Management

Get-ADOrganizationalUnit

Gets one or more Active Directory organizational units.

Get-ADOrganizationalUnit

Networking

ipconfig

Displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings.

ipconfig
netstat

Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics, and IPv6 statistics.

netstat
ping

Verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message Protocol (ICMP) echo Request messages.

ping
tracert

Determines the path taken to a destination by sending Internet Control Message Protocol (ICMP) echo Request messages with varying Time-to-Live (TTL) values.

tracert

Process Management

tasklist

Displays a list of currently running processes on either a local or remote machine.

tasklist
taskkill

Ends one or more tasks or processes.

taskkill

System Management

sfc

System File Checker. Scans and verifies the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions.

sfc
chkdsk

Checks a disk for errors and repairs them.

chkdsk
schtasks

Schedules commands and scripts to run on a computer at a specified time or event.

schtasks
systeminfo

Displays detailed configuration information about a computer and its operating system.

systeminfo