Linux – copy file contents to clipboard
Problem - You have a file with hundreds or thousands of lines and you want to copy the contents of this file and paste it to an external application, for instance to
CATEGORY ARCHIVE
Practical knowledge, one discovery at a time.
132 ARTICLES
Problem - You have a file with hundreds or thousands of lines and you want to copy the contents of this file and paste it to an external application, for instance to
git - add local files to a git repository in local file system (bare git repo).
is used to find out the shared libraries or dependencies required by a program if it is a dynamic executable. ldd requires the full path to the executable as input.
Getting date from Real time clock (RTC) without using the date command or any other Linux time related commands.
Nginx / Apache - log real client IP or x-forwarded-for address.
Environment - Operating System : CentOS release 6.8 Google Chrome: Version 55.0.2883.87 (64-bit)
Free SSL certificates with Let's Encrypt certbot - tested in Ubuntu 14.04 with Apache 2.
Cloud service providers IP ranges for Amazon Web Services(AWS), Microsoft Azure and Google Cloud Platform(GCP).
Linux kernel - check the kernel options enabled during kernel compilation.
Most browsers have developer plugins where you can see the HTTP status code response and other request/response headers. For automation purposes though, you are most