Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

truncate docker logs

truncate -s 0 /var/lib/docker/containers/*/*-json.log

--or--

sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log"
Comment

PREVIOUS NEXT
Code Example
Shell :: How to Enable-Migrations? 
Shell :: git remote origin edit 
Shell :: vite starting comand 
Shell :: sdkman 
Shell :: exclude/prevent file from commit using git ignore 
Shell :: download torrent in linux terminal 
Shell :: pip install quiet 
Shell :: usr/bin/env: ‘node’: No such file or directory 
Shell :: adb shell error: more than one device/emulator 
Shell :: git commit back in time 
Shell :: fix windows and linux time 
Shell :: remove kubernetes dashboard 
Shell :: awk trim every nth line 
Shell :: htaccess route to index.php 
Shell :: git delete multiple branch local 
Shell :: vim cant open file for writing 
Shell :: rustup set default toolchain nightly 
Shell :: aws cli update profile variable 
Shell :: linux search inside files 
Shell :: push clone repo to own repo 
Shell :: crontab execute shell script 
Shell :: git commit and push command 
Shell :: how to commit to github from terminal 
Shell :: uninstall mono ubuntu 
Shell :: install cpanm 
Shell :: install httrack on ubuntu 20.04 
Shell :: wslconfig 
Shell :: clean my ubuntu 
Shell :: kubernetes get inside pod 
Shell :: install poetry 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =