Skip to content

Python in the jungle

Just a notepad

Python in the jungle

Tag: logging

Truncate large files in linux

Better late than never

Truncate file into Mb’s

$ sudo truncate -s 10M filename.log

Truncate file into Gb’s

$ sudo truncate -s 1G filename.log
adminAuthor adminPosted on December 26, 2017December 26, 2017Categories UncategorizedTags cli, logging, logs, truncateLeave a comment on Truncate large files in linux

Pages

  • About

Recent Posts

  • Install Redshift on Fedora 28 & Apply the Screen Reduction
  • Run bash terminal inside VIM with Conque-Shell
  • Run Terraform With AWS Profile
  • Let’s understand Git Submodule
  • Nginx: set the server_name as wildcard without hostname
  • Install Docker On Ubuntu 18.04
  • Setup plugin manager for vim on fedora 28
  • Install TeamViewer On Fedora 28, Easy setup
  • Setup scrot on Ubuntu
  • How to delete stucked Route53 zone created by ECS service discovery
  • pip error after upgrade: ImportError: cannot import name ‘main’
  • How to install awscli command on Ubuntu
  • NerdTree command cheatsheet
  • Alembic set autogenerate model
  • Setup Systemd Service on Ubuntu 16.04
  • Install MySQL on Ubuntu And Skip the Password Prompt
  • Setup Simple Ruby on Rails App On Ubuntu 16.04 From Scratch
  • Linux machine Failed to hibernate, “system via logind: Sleep verb not supported”
  • Setup ftp that works with local user with vsftpd on ubuntu
  • Clone github private repo with personal access token

Recent Comments

    Archives

    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017
    • April 2017
    • March 2017
    • January 2017
    • September 2016
    • January 2016
    • December 2015
    • May 2014
    • April 2014
    • August 2012

    Tags

    • alembic (2)
    • android (2)
    • ansible (2)
    • apt (2)
    • arcanist (2)
    • aws (12)
    • aws-cli (2)
    • awscli (2)
    • bash (7)
    • centos (4)
    • cli (37)
    • django (2)
    • dnf (2)
    • docker (10)
    • fedora (12)
    • flask (2)
    • git (8)
    • jenkins (2)
    • jobs (3)
    • kubernetes (3)
    • linux (7)
    • lvm (2)
    • mysql (7)
    • nginx (11)
    • php (5)
    • php-fpm (2)
    • pip (2)
    • puppet (2)
    • python (14)
    • rails (2)
    • regex (1)
    • rpm (2)
    • ruby (3)
    • samba (3)
    • shell (3)
    • ssh (4)
    • ssl (3)
    • terraform (5)
    • tunneling (2)
    • ubuntu (14)
    • uwsgi (2)
    • vagrant (5)
    • vim (5)
    • wordpress (5)
    • yum (2)
    Python in the jungle Proudly powered by WordPress