Questions tagged [var]
The var tag has no usage guidance.
26
questions
0
votes
1
answer
25
views
/var keeps filling due to yum cache
the /var/cache directory keeps filling frequently due to yum metadata in centos 7.5 server.
most of the space utilized by the below files. i have set keep cache to 0 in /etc/yum.conf as well. but ...
0
votes
0
answers
82
views
When to clean up /var/tmp?
/var/tmp is not defined in POSIX, but is defined in FHS:
5.15. /var/tmp : Temporary files preserved between system reboots
5.15.1. Purpose
The /var/tmp directory is made available for programs that
...
0
votes
1
answer
23
views
bash :: use imported array
myVAR='myArr'
. ./myArraysFile # external file with all my arrays, one of the arrays is myArr=('one' 'two' 'three')
I need to use this arrey with further scripting
Examples:
echo ${!myVAR}[1] # I ...
0
votes
0
answers
19
views
What files should be deleted if i don't want anyone to know if the system has been once linked to the internet?
For certain reasons I have to delete all files that might indicate that the syatem has once been linked to the internet. I have deleted all the records in browser, and the internet ethernet address. ...
2
votes
1
answer
219
views
Moving /var onto different disk/partition
I moved the /var directory to a new disk/partition, this part worked well, but I forgot to delete/move the old /var path and it is still using space on / (root) partition. How could I delete the old /...
1
vote
1
answer
67
views
I have been trying to move /var to a new partition but the data disappears
I have been attempting to move my /var folder to a new partition. I am using Debian 10.7 and have an 8GB processor so am trying to save space. I have tried several things but part of the data always ...
0
votes
0
answers
31
views
As admin, can I log all keystrokes for one specific non-root user?
I'm a sudoer. I'd like to set something up that whenever (non-sudoer) user student1 is logged in, all keystrokes are logged so that I can later (sudo) review them; student1 should not be able to kill ...
0
votes
1
answer
99
views
I accidentally deleted /var directory in my fedora 33 server
The system is up and running but I can't use yum or dnf and some other programs.What should I do now. How can I fix it.
1
vote
1
answer
89
views
What enable `mysql` user to write a file into /var/log?
/var/log/ belongs to root user:
$ ls -ld /var/log
drwxr-xr-x. 13 root root 4096 Mar 31 19:23 /var/log
As you can see the other do not have the write privilege and there's no sticky bit (as for the /...
8
votes
2
answers
25k
views
Is it safe to delete these snaps? [closed]
UPDATE: No, it is not safe to delete these snaps. I deleted them and can no longer open three of my applications. Attempt at opening Visual Studio Code:
~$ code
internal error, please report: running ...
0
votes
1
answer
422
views
I accidentally deleted var directory in my linux opensuse system. I can't acces the GUI as var/lib/gdm also got deleted
Message shown:
Server authorization directory (daemon/ServeAuthDir) is set to /var/lib/gdm but this doesn't exist.
1
vote
1
answer
913
views
How to find and delete OS junk files on /var
I tried to update my "Fedora" by using Terminal. It worked great at first but after a while it said that "there is not enough space in var/". I added some more space by using Gparted and now ...
0
votes
1
answer
505
views
PhpStorm don't show /var/www on opening
I installed PhpStorm on Linux Mint 19.2 . When I try to open the project, the editor doesn't show me the /var/www directory. What can I do? I don't have this problem with VSCode
In lamp installation ...
1
vote
1
answer
5k
views
How can I move /var to spacious partition or increase size of the partition (/dev/sda3 in this case) to say 30G?
I am working on a Debian 9 system. When I try to install a package, dpkg fails with following error:
Selecting previously unselected package mariadb-server-10.1.
Preparing to unpack .../3-mariadb-...
0
votes
3
answers
2k
views
How to make /var/log persistent through reboots on an embedded linux device
Scenario
I am on an embedded linux system. As usual /var/log/ is the directory when all the logs are stored. I have a directory called /safepath which is created during image creation and it is on ...
0
votes
2
answers
130
views
Bind mounted /var to /raid5/var and CentOS fails to boot
System Background: I am running CentOS 7 in a VM (in VirtualBox) on a host computer running Windows 10. My /dev/sda is on an SSD and then I have three 1TB HDDs /dev/sdb, /dev/sdc, and /dev/sdd ...
0
votes
1
answer
4k
views
can i safely remove /var/log/jenkins/jenkins.log (/var: 100% used) [duplicate]
I am running out of disk space with /var system file and noticed /var/log/jenkins/jenkins.log file is occupied 7 GB. Can i safely remove this log file ?
1
vote
1
answer
486
views
mount /var as tmpfs && backup to disk @ shutdown && restore from disk @ boot
I run a fedora 27 server mainly for an email service, that is mainly used for temporary email communications by a software. Almost nothing permanent need to be stored on the /var, maybe except it's ...
1
vote
1
answer
164
views
To Symlink or not to Symlink?
Prefacing this by saying I'm pretty new to Linux/Computers.
I'm working on doing a yum update on an outdated RHEL (7.2) system. I'm currently not able to install anything new or change the disk ...
1
vote
2
answers
127
views
Want to increase partition sizes - how to do so safely?
I'm looking to resize a number of partitions, but I'm unsure how to go about doing this.
I want to increase the partition size of the /var partition, that is in the middle of all the other partitions....
0
votes
1
answer
4k
views
Search by file extension using grep command in /var/run
I want to search files by using grep command in the directory /var/run
/var/run stores the processes running in the system and it has files with pid extension. I want to get a list of all the files ...
6
votes
4
answers
6k
views
What would likely cause directories in /var/run to disappear / not be created on startup? (CentOS 7.3)
Ran into an issue today where Apache would not load because /var/run/httpd was missing. After much hunting to find that cause of the error I was getting ([Tue Jul 25 00:06:31.574386 2017] [auth_digest:...
1
vote
1
answer
2k
views
var directory showing its full via command 'df-h' [duplicate]
df -h shows:
df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 1.9G 256M 1.5G 14% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ada0p4 804G ...
12
votes
1
answer
20k
views
Why do I get the error "failed unmounting /var" during shutdown?
I have a fresh install of Debian 9.0.0. It has a separate 1 GB partition for /var formatted at ext4. When I shutdown from the terminal, using shutdown -h now, there is a bright-red error message ...
3
votes
2
answers
1k
views
Accidentally deleted /var folder
I accidentally moved my /var folder to trash and now unable to login to Mac.
The only solution I found until now is to recover OS X.
I have tried to move /var back to /private folder in single user ...
3
votes
2
answers
2k
views
Does /var keep growing in size?
tldp.org quotes /var as:
Files in /var/log can often grow indefinitely, and may require
cleaning at regular intervals.
So without cleaning, using a system for a long enough period will fill up ...