Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

cannot delete /var/lib/php/sessions/

cd /var/lib/php
sudo mkdir emptydir
rsync -a --delete /var/lib/php/emptydir/ /var/lib/php/sessions/

#or delete using this command (wait for long time but this is working)
#First:
cd /var/lib/php/sessions
#Then:
ls -f | xargs -d "
" rm

#check count of files with "df -i" command
Comment

PREVIOUS NEXT
Code Example
Shell :: how to stash the newly created files in git 
Shell :: remove user from sudo group 
Shell :: upload github 
Shell :: upgrade pip version 
Shell :: crontab delay after reboot 
Shell :: serverless not using aws profile 
Shell :: undo last commit but keep changes 
Shell :: install haskell stack 
Shell :: linux substitute string 
Shell :: uninstall brew from linux 
Shell :: bash message partial match 
Shell :: bash print lines that dont have a word 
Shell :: psycopg2 error 
Shell :: how to install npm 
Shell :: how to clone a specific git tag 
Shell :: arch linux chinese fonts 
Shell :: switch to previous branch git 
Shell :: operator mono github 
Shell :: nmap linux 
Shell :: how to install gitkraken on fedora 
Shell :: grep specific file 
Shell :: change date linux 
Shell :: get linux distro from terminal 
Shell :: material ui install 
Shell :: linux check if dir is mounted 
Shell :: git push username password 
Shell :: stop a process running on a port 
Shell :: install ionic cli specific version 
Shell :: remove all files inside directory linux 
Shell :: boot repair linux 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =