Skip to main content

Other

To check system time with “date” command and fix if it’s in wrong timezone

To manually set date if it’s in correct timezone but still wrong

If Ubuntu no-key error is received

To fix SSH working with dash instead of bash due to user definition

To see applications killed by OOM Killer


Disk Checks

To See Current Usage and Limits on All Disks

To See Current Usage and Limits at a Specific Address

Memory Checks

Memory Information

To See Current Memory Amount and Limits

Processor Checks

CPU Information

To See Only Processor Count

To See Total Thread Count

To See Total Thread Count Belonging to Java Application

Taking dump

Determining Process Count for Current User


Jar Operations

Extracting File from Jar

Creating Jar from File

Creating Jar from File with manifest File


File Operations

Transferring Folder to Another Server with SCP

To Convert tar.gz File to zip

To See Open Files

To See Top Ten File Descriptors with Most Open Files

Processes with Most Open Files


Firewall Operations


Wget Operations

Downloading File from Google Drive with Wget

Sorting by File Size


Network Operations

To See Process or Service Using a Specific Port

Running Ports

Example output:
Other frequently used parameters:
  • -t: Show only TCP sockets on Linux
  • -u: Display only UDP sockets on Linux
  • -l: Show listening sockets. For example, TCP port 22 is opened by SSHD server.
  • -p: List process name that opened sockets
  • -n: Don’t resolve service names i.e. don’t use DNS

Certificate Operations

Getting server certificate from Linux server

Certificate import to jar file application


Vi Editor Operations

To write all commands related to Vi and vim, first press the escape key to enter command mode and most should start with : (colon) character.

To exit without saving edits

To exit by saving edits

Replace All


CURL Operations

Parameters:
  • -k: To go to SSL addresses without verification
  • -v: For log
  • -m 10: For timeout
  • -u <USERNAME>: To send username and prompt for password
  • --output response.txt: To save output

Sending SOAP request and logging response

Accessing Basic auth WSDL address (will ask for password) and saving it