• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

Xrvel House

My Programming Blog

  • Database
  • Programming
    • CSS
    • JavaScript
    • PHP
  • SEO
  • Server
  • Web Hosting
  • Website
    • vBulletin
    • Website Development
    • WordPress
  • Coding & SEO Service
  • Privacy Policy

Unix

How to Append Date and Time to Log File in Linux

July 23, 2016 By Xrvel Leave a Comment

If we want to get detailed log report, we can store multiple log files with date and time information on the file name 🙂

We can do this command in Linux :

your_command_here > /path_1/path_2/your_log_$(date +"%Y-%m-%d_%H-%M-%S").txt

[Read more…] about How to Append Date and Time to Log File in Linux

Filed Under: Server Tagged With: Date, Linux, SSH, Time, Unix

How to Create and Extract Tar.gz File in Linux

June 7, 2015 By Xrvel Leave a Comment

How to create tar.gz in Linux :

tar -zcvf "archive.tar.gz" "file.sql"
tar -zcvf "archive.tar.gz" "/home/example/public_html/"

How to extract tar.gz in Linux :

tar -zxvf "archive.tar.gz"

Filed Under: Server Tagged With: Archive, Extract, Linux, Server, Shell, SSH, Tar, Tar Gz, Unix

Primary Sidebar

Categories

Recent Posts

  • Bitmex PHP API Example
  • Fix WordPress Cloudflare HTTPS Redirect Loop
  • Find String in Files in Linux
  • How to Install PhantomJS in cPanel / WHM Server
  • Use DKIM Key With WHM, cPanel, Cloudflare
  • How to Append Date and Time to Log File in Linux
  • How to Delete Files in Directory in Linux
  • Empty a File Using Linux Command

Recent Comments

  • Jacob Walter on How to Install PhantomJS in cPanel / WHM Server
  • Giri on WordPress Login ReCAPTCHA Plugin
  • Anon on WordPress Login ReCAPTCHA Plugin
  • Xrvel on WordPress Login ReCAPTCHA Plugin
  • Amit on WordPress Login ReCAPTCHA Plugin

Tags

Apache Captcha CentOS Cloudflare CodeIgniter Command Line cPanel CSF DigitalPoint Encode Facebook Free htaccess HTML HTTPD Ioncube iPad JavaScript jQuery Linux Misc MySQL PHP Plugin recaptcha Scam Scammer ScrapeBox Script Scum SEO SEO Software Server Shell Sphinx Sphinx Search Engine SSH Tips Unix UTF8 vBulletin WHM Windows Wordpress Wordpress Plugin

© Xrvel.com