Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

truncate log file linux

sudo find /var/log -type f -iname '*log' -print0 | sudo  xargs -0 truncate -s0
Comment

PREVIOUS NEXT
Code Example
Shell :: remote add to github 
Shell :: bash remove string from string 
Shell :: github api tutorial 
Shell :: bash count files in directory recursively matchingattern 
Shell :: git ls-files --others -i --exclude-standard 
Shell :: how to edit crontab macos 
Shell :: delete from git history 
Shell :: create git repository 
Shell :: debian 9 enable rc.local 
Shell :: unable to install all modules vmware ubuntu 20.04 
Shell :: kali linux download 
Shell :: downloading and updating vscode 
Shell :: how to pull from specific branch 
Shell :: sed print from match to end of file 
Shell :: git squase to rename author 
Shell :: insomnia 
Shell :: run docker as user not root 
Shell :: /bin/bash^M: bad interpreter: No such file or directory 
Shell :: install kubectl windows 
Shell :: pg_dump export single table 
Shell :: copy from server to local ssh 
Shell :: gzip folder with tar and exclude directories 
Shell :: influxdb version 
Shell :: bash "=~" example 
Shell :: git config path 
Shell :: how to download a file from server 
Shell :: debian 10 sources 
Shell :: remove a git remote origin 
Shell :: duplicate wsl distro 
Shell :: xampp install in linux fedora 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =