Skip to content
Mkyong.com
Mkyong.com
  • Development Service
  • Spring Boot
  • Java 8
  • Contact

linux

How to change user agent in wget

September 26, 2023 by mkyong

This article shows how to use the -U (uppercase U) option to change the user agent in wget command. Terminal wget -U {user-agent} {location} Change user agent in wget The below command changes the wget user agent to Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7). Terminal wget -U "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" …

Read more

Categories unix / linux Tags http request, linux, user agent, wget Leave a comment

How to backup entire website to Amazon S3 using shell script

August 9, 2023May 29, 2021 by mkyong

This article shows a shell script to backup, gzips the website files and folders, and uploads the backup file to Amazon S3. Table of contents 1. Install AWS CLI 2. Backup files and folders to Amazon S3 (Shell script) 3. How to run the backup script? 4. Run the backup script every day or weekly …

Read more

Categories unix / linux Tags amazon s3, aws, backup, cron, linux, shell script 1 Comment

Java 11 shebang example in Docker

May 15, 2020 by mkyong

In Java 11, JEP 330 adds support to run single-file source code directly. Terminal # Before Java 11 $ javac Hello.java $ java Hello # Now Java 11 $ java Hello.java This indirectly supports the Java single-file program to run as a script using Unix Shebang. For example, run below .sh file will print Hello …

Read more

Categories java Tags docker, java 11, linux, shebang, shell script Leave a comment

Linux – How to run cron job as root?

February 17, 2020January 17, 2020 by mkyong

On Linux, uses sudo crontab -e to define cron jobs that need to run as a root user. $ sudo crontab -e # Run every hour 0 * * * * * /path/this-script-need-root.sh References Wikipedia – Cron

Categories unix / linux Tags cron, linux, root, system admin Leave a comment

How to create a .tar.gz file on Linux

May 29, 2021October 30, 2008 by mkyong

A few examples to show the use of tar command to create a .tar.gz file on Linux. Table of contents 1. Create, list and extract a .tar.gz file 2. What is tarball or .tar.gz? 3. Create a .tar.gz file 3.1 Tar and compress a file 3.2 Tar and compress multiple files 3.3 Tar and compress …

Read more

Categories unix / linux Tags compress file, gzip, linux, tar, uncompress file, zip 3 Comments

Mkyong.com has provided Java and Spring tutorials, guides, and code snippets since 2008. All published articles are simple, easy to understand, and well-tested in our development environment.

Mkyong.com licenses all source code on this website under the MIT License.

Tools
  • Spring Framework
  • Quarkus Framework
  • Micronaut Framework
  • Oracle Java JDK
  • Eclipse Temurin JDK
  • OpenJDK JDK
  • Hibernate ORM
  • Maven Build Tool
  • Gradle Build Tool
  • Tomcat Application Server
  • Docker
Links
  • Spring Guides
  • Docker Hub
  • Maven Central
  • Keep A Changlog
  • Semantic Versioning
  • Hugging Face - Qwen
  • Martin Fowler
About
  • About Us
  • Code License
  • Privacy Policy
  • Terms Of Use
  • Contact Us
© 2026 Mkyong.com - Build with Love.