Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. linux

Tag: linux

u
unix / linux September 26, 2023 by mkyong 0 comments

How to change user agent in wget

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 How to change user agent in wget
u
unix / linux May 29, 2021 by mkyong 1 comment

How to backup entire website to Amazon S3 using shell script

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 How to backup entire website to Amazon S3 using shell script
j
java May 15, 2020 by mkyong 0 comments

Java 11 shebang example in Docker

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 Java 11 shebang example in Docker
unix / linux January 17, 2020 by mkyong 0 comments

Linux – How to run cron job as root?

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

Read more Linux – How to run cron job as root?
u
unix / linux October 30, 2008 by mkyong 3 comments

How to create a .tar.gz file on Linux

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 How to create a .tar.gz file on Linux

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.

About
  • About Us
  • Code License
  • Privacy Policy
  • Terms Of Use
  • Contact Us
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
  • Maven Central
  • Docker Hub
  • Spring Guides
  • Quarkus Guides
  • Micronaut Guides
  • Martin Fowler
  • AskPython

© 2026 mkyong.com — Powered by WordPress

RSS