Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to clear log files linux debian

sudo find /var/log -type f -delete
Comment

clear log file space linux

find /var/log -type f -delete
Comment

linux bash clear log file space

# Run as root, of course.
# For sh shells:
cd /var/log
: > messages
: > wtmp
echo "Log files cleaned up."

# For bash shells:
cd /var/log
> messages
> wtmp
echo "Log files cleaned up."

# This is a better version, does the same thing, less redundancy.

# visit this link for detailed explanation:
https://superuser.com/questions/849413/why-would-you-cat-dev-null-var-log-messages
Comment

clear log file space linux

find /var/log -type f -regex ".*.gz$"
find /var/log -type f -regex ".*.[0-9]$"
Comment

PREVIOUS NEXT
Code Example
Shell :: pip install local directory 
Shell :: ssh permission denied publickey 
Shell :: how to push to heroku outside the master branch 
Shell :: how to install node using nvm 
Shell :: how to install android studio in ubuntu 
Shell :: force delete folder linux 
Shell :: helm add stable hub 
Shell :: get history command without line numbers 
Shell :: linux terminal show processes 
Shell :: linux list all system groups in order 
Shell :: git move change from master to new branch 
Shell :: pip remove package 
Shell :: create a new branch and publish gitub 
Shell :: bash echo 
Shell :: convert vmdk to qcow2 
Shell :: chown command 
Shell :: How to Edit connections in Ubuntu 
Shell :: install vagrant in ubuntu 18.04 
Shell :: git revert merge commit 
Shell :: bash switch 
Shell :: fastlane match update certificate 
Shell :: cmd unzip windows 
Shell :: env: sh : No such file or directory 
Shell :: install vault 
Shell :: commitlint install 
Shell :: linux create user with homedir 
Shell :: get ip address linux 
Shell :: start mongodb ubuntu 
Shell :: how to open file in linux 
Shell :: install couchdb ubuntu 18.04 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =