Skip to content

mkyong.com

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

Tag: linux

u
unix / linux September 26, 2023 1 min read 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 2 min read 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 2 min read 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 1 min read 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 5 min read 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

Recent Posts

  • Java Compact Source File: No Class, No Static Main
  • Java Scoped Values Example
  • Spring Boot RAG Example with Spring AI
  • Java AtomicInteger Example
  • Java Virtual Threads Example
  • Spring Boot Supabase CRUD Example
  • Spring Boot REST Docs Example
  • How to Install Java on Windows (Step-by-Step Guide)

© 2008–2026 mkyong.com

  • About
  • Editorial Policy
  • Contact
  • Code License
  • Privacy Policy
  • Terms of Use