Skip to content

Instantly share code, notes, and snippets.

@rasheedamir
Last active September 15, 2015 07:37
Show Gist options
  • Select an option

  • Save rasheedamir/bb1b186becc6e67d083c to your computer and use it in GitHub Desktop.

Select an option

Save rasheedamir/bb1b186becc6e67d083c to your computer and use it in GitHub Desktop.
Linux Commands
  1. Sort files by date & time: ls -halt

  2. Nano go to the end of the file: Ctrl + w + v

  3. Nano "Ctrl + w" to find the text and then press enter to search the it

@rasheedamir

Copy link
Copy Markdown
Author
  1. Check which certificates are in a Java keystore

keytool -list -v -keystore keystore.jks

@rasheedamir

Copy link
Copy Markdown
Author

list particular entry in truststore

keytool -list -v -keystore truststore.jks -alias baltimore-cybertrust-root

@rasheedamir

Copy link
Copy Markdown
Author

To copy certificates ( from local machine to dev machine )

scp /home/rasheed/Projects/Integration/ssl/Baltimore-CyberTrust-Root.der dev:/home/rasami

@rasheedamir

Copy link
Copy Markdown
Author

delete entry from the keystore or truststore

keytool -delete -alias baltimore-cybertrust-root -keystore truststore.jks

@rasheedamir

Copy link
Copy Markdown
Author

In order to copy a file from a container to the host, you can use the command

docker cp containerId:/file/path/within/container /host/path/target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment