Hot answers tagged linux
The fastest way to create a file in a Linux system is fallocate: sudo fallocate -l 50G file Re @gerrit's question about why I'm using sudo to run it, fallocate needs root privileges because it does not actually "create" the file per se, it manipulates the file allocation system directly, thus being almost instant as the question asks, as it doesn't have ...
-g sets the initial, or primary, group. This is what appears in the group field in /etc/passwd. On many distributions the primary group name is the same as the user name. -G sets the supplementary, or additional, groups. These are the groups in /etc/group that list your user account. This might include groups such as sudo, staff, etc.
Other alternatives include: to change the alarm thresholds to something near or below the current usage, or to create a very small test partition with limited inodes, size, or other attributes. Being able to test things such as running into the root reserved percentage, if any, may also be handy.
They are not the same. The -g option specifies the "primary" group that a user should belong to, while the -G option specifies one or many supplementary ("secondary") groups. On a work machine I have access to I have $ id uid=1001(me) gid=1001(me) groups=1001(me),27(sudo),110(lxd),1005(theproject) This shows that my "primary" group is me (same as my ...
Use the metric directive in the interfaces. The higher the value, the lower the priority. allow-hotplug eth0 iface eth0 inet static address 192.168.20.2 netmask 255.255.255.0 gateway 192.168.20.1 metric 30 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf metric 10 Then restart networking ...
fallocate -l 50G big_file truncate -s 50G big_file dd of=bigfile bs=1 seek=50G count=0 As those three ways can all fill up a partition quickly. If you like use dd, usually you can try it with seek. Just set seek=file_size_what_you_need and set count=0. That will tell the system there is a file, and its size is what you set, but the system will not create ...
PIDs do wrap around in normal usage. That's not a problem at all; the kernel ensures that new PIDs don't collide with existing PIDs. Nothing says that PIDs have to be monotomically increasing; process 12345 could easily fork() and have a child process of 5001. In this scenario, yes, a user could potentially use up all process slots and prevent further ...
It depends on the application, and thus may vary from "ha ha ha, no." to possibly "yes" though given the infinite variety of errors that can be introduced, and the specific needs of the thing being configured, it is more likely that buggy undesirable input will be generated than the error caught by a validator (and then there's syntactically correct but ...
Found the answer here: https://wiki.debian.org/DebianSqueeze My apt sources needed to be pointed at archive.debian.org rather than http.debian.net
You need to (at least) remove apache2.2-bin: apt-get remove apache2.2-bin Alternatively, you can force the installation of apache2-bin: dpkg -i --force-overwrite /var/cache/apt/archives/apache2-bin_2.4.20-2_amd64.deb and then try apt-get -f install again.
The group applied via -g is the primary group, so for example when you create a file it will default to making it with your primary group as the group associated with that file. You can however temporarily change which group it uses as default with the sg or newgrp commands. All groups in the -G are secondary groups. More about this here
Only top voted, non community-wiki answers of a minimum length are eligible