Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to clear log files linux debian

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

linux bash how to clear log files debian ubuntu centos

# 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

PREVIOUS NEXT
Code Example
Shell :: force pull git 
Shell :: powershell on linux 
Shell :: put bash script execution output in a file 
Shell :: install psql 
Shell :: adonis make migration 
Shell :: npm uninstall 
Shell :: bash scripts options without arg 
Shell :: git merge force 
Shell :: wireshark para ubuntu 
Shell :: magento shell reindex 
Shell :: pip install bootstrap 
Shell :: git reflog 
Shell :: how to uninstall a package installed using homebrew 
Shell :: pip installation directory 
Shell :: install zip raspberry pi 
Shell :: how to create a host driver in docker 
Shell :: how to install winetricks 
Shell :: spaceship zsh 
Shell :: extract from tar gz into folder 
Shell :: linux shell echo command with varia ble 
Shell :: set global git ignore 
Shell :: linux last login 
Shell :: bash: fork: Cannot allocate memory 
Shell :: sudo cd command not found 
Shell :: how to take a screenshot gnome 
Shell :: redwood start prisma studio 
Shell :: install apollo server 
Shell :: powershell open file 
Shell :: how to uninstall a package with yarn 
Shell :: linux sudo /opt/lampp/lampp start command not found 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =