How do i delete var/log files in Ubuntu 16.04
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I want to delete var/log files due to low disk space but cannot find how.
Any help would be appreciated!
16.04 log
New contributor
add a comment |Â
up vote
1
down vote
favorite
I want to delete var/log files due to low disk space but cannot find how.
Any help would be appreciated!
16.04 log
New contributor
If yourm
the log files, you may temporarily solve your low disk space issue, but you do realize the log files will be re-created & return... If you have a condition causing these to grow too large, you should be treating the cause, and not its effect (esp. in this way).
â guiverc
2 hours ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to delete var/log files due to low disk space but cannot find how.
Any help would be appreciated!
16.04 log
New contributor
I want to delete var/log files due to low disk space but cannot find how.
Any help would be appreciated!
16.04 log
16.04 log
New contributor
New contributor
edited 5 hours ago
abu_bua
2,31631021
2,31631021
New contributor
asked 5 hours ago
Hass
63
63
New contributor
New contributor
If yourm
the log files, you may temporarily solve your low disk space issue, but you do realize the log files will be re-created & return... If you have a condition causing these to grow too large, you should be treating the cause, and not its effect (esp. in this way).
â guiverc
2 hours ago
add a comment |Â
If yourm
the log files, you may temporarily solve your low disk space issue, but you do realize the log files will be re-created & return... If you have a condition causing these to grow too large, you should be treating the cause, and not its effect (esp. in this way).
â guiverc
2 hours ago
If you
rm
the log files, you may temporarily solve your low disk space issue, but you do realize the log files will be re-created & return... If you have a condition causing these to grow too large, you should be treating the cause, and not its effect (esp. in this way).â guiverc
2 hours ago
If you
rm
the log files, you may temporarily solve your low disk space issue, but you do realize the log files will be re-created & return... If you have a condition causing these to grow too large, you should be treating the cause, and not its effect (esp. in this way).â guiverc
2 hours ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
As mentioned, you can delete a specific log file with sudo rm /var/log/<FILENAME>
or all of them with sudo rm /var/log/*
.
I also found this: du -h /var/log/ 2>/dev/null > ~/fileinfo
to list the size and path of every log file. To view the result you can use cat ~/fileinfo
New contributor
No need in this case to use sudo..
â doug
3 hours ago
thanks @doug changing answer to reflect this
â Mon Vrai Nom
3 hours ago
add a comment |Â
up vote
0
down vote
1. Open up the terminal
2a. If you are not sure that you want to delete all of the files you can do it one by one
sudo rm /var/log/logfile.log
2b. or all of them at once
sudo rm /var/log/*
1
I would also try to see which file is the biggest and look at the log to see what warning or error is filling up the log and then try to correct it.
â chili555
4 hours ago
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
As mentioned, you can delete a specific log file with sudo rm /var/log/<FILENAME>
or all of them with sudo rm /var/log/*
.
I also found this: du -h /var/log/ 2>/dev/null > ~/fileinfo
to list the size and path of every log file. To view the result you can use cat ~/fileinfo
New contributor
No need in this case to use sudo..
â doug
3 hours ago
thanks @doug changing answer to reflect this
â Mon Vrai Nom
3 hours ago
add a comment |Â
up vote
2
down vote
As mentioned, you can delete a specific log file with sudo rm /var/log/<FILENAME>
or all of them with sudo rm /var/log/*
.
I also found this: du -h /var/log/ 2>/dev/null > ~/fileinfo
to list the size and path of every log file. To view the result you can use cat ~/fileinfo
New contributor
No need in this case to use sudo..
â doug
3 hours ago
thanks @doug changing answer to reflect this
â Mon Vrai Nom
3 hours ago
add a comment |Â
up vote
2
down vote
up vote
2
down vote
As mentioned, you can delete a specific log file with sudo rm /var/log/<FILENAME>
or all of them with sudo rm /var/log/*
.
I also found this: du -h /var/log/ 2>/dev/null > ~/fileinfo
to list the size and path of every log file. To view the result you can use cat ~/fileinfo
New contributor
As mentioned, you can delete a specific log file with sudo rm /var/log/<FILENAME>
or all of them with sudo rm /var/log/*
.
I also found this: du -h /var/log/ 2>/dev/null > ~/fileinfo
to list the size and path of every log file. To view the result you can use cat ~/fileinfo
New contributor
edited 3 hours ago
New contributor
answered 3 hours ago
Mon Vrai Nom
213
213
New contributor
New contributor
No need in this case to use sudo..
â doug
3 hours ago
thanks @doug changing answer to reflect this
â Mon Vrai Nom
3 hours ago
add a comment |Â
No need in this case to use sudo..
â doug
3 hours ago
thanks @doug changing answer to reflect this
â Mon Vrai Nom
3 hours ago
No need in this case to use sudo..
â doug
3 hours ago
No need in this case to use sudo..
â doug
3 hours ago
thanks @doug changing answer to reflect this
â Mon Vrai Nom
3 hours ago
thanks @doug changing answer to reflect this
â Mon Vrai Nom
3 hours ago
add a comment |Â
up vote
0
down vote
1. Open up the terminal
2a. If you are not sure that you want to delete all of the files you can do it one by one
sudo rm /var/log/logfile.log
2b. or all of them at once
sudo rm /var/log/*
1
I would also try to see which file is the biggest and look at the log to see what warning or error is filling up the log and then try to correct it.
â chili555
4 hours ago
add a comment |Â
up vote
0
down vote
1. Open up the terminal
2a. If you are not sure that you want to delete all of the files you can do it one by one
sudo rm /var/log/logfile.log
2b. or all of them at once
sudo rm /var/log/*
1
I would also try to see which file is the biggest and look at the log to see what warning or error is filling up the log and then try to correct it.
â chili555
4 hours ago
add a comment |Â
up vote
0
down vote
up vote
0
down vote
1. Open up the terminal
2a. If you are not sure that you want to delete all of the files you can do it one by one
sudo rm /var/log/logfile.log
2b. or all of them at once
sudo rm /var/log/*
1. Open up the terminal
2a. If you are not sure that you want to delete all of the files you can do it one by one
sudo rm /var/log/logfile.log
2b. or all of them at once
sudo rm /var/log/*
edited 5 hours ago
abu_bua
2,31631021
2,31631021
answered 5 hours ago
m_krsic
42329
42329
1
I would also try to see which file is the biggest and look at the log to see what warning or error is filling up the log and then try to correct it.
â chili555
4 hours ago
add a comment |Â
1
I would also try to see which file is the biggest and look at the log to see what warning or error is filling up the log and then try to correct it.
â chili555
4 hours ago
1
1
I would also try to see which file is the biggest and look at the log to see what warning or error is filling up the log and then try to correct it.
â chili555
4 hours ago
I would also try to see which file is the biggest and look at the log to see what warning or error is filling up the log and then try to correct it.
â chili555
4 hours ago
add a comment |Â
Hass is a new contributor. Be nice, and check out our Code of Conduct.
Hass is a new contributor. Be nice, and check out our Code of Conduct.
Hass is a new contributor. Be nice, and check out our Code of Conduct.
Hass is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1077578%2fhow-do-i-delete-var-log-files-in-ubuntu-16-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
If you
rm
the log files, you may temporarily solve your low disk space issue, but you do realize the log files will be re-created & return... If you have a condition causing these to grow too large, you should be treating the cause, and not its effect (esp. in this way).â guiverc
2 hours ago