Comment by Zoredache on Why does default bash seem to not have some of the...
Bash saves the history to a file, when it exits. If it gets killed, it doesn't save the history. If you recently restarted, maybe things didn't exit properly.
View ArticleComment by Zoredache on Dnsmasq makes ping start slowly
If options single-request makes it go away, are you sure that one of the servers you are pointing at wasn't broken?
View ArticleComment by Zoredache on Is it normal for a debian server to have used 191GB...
The output of du -x --max-depth=1 -h / would probably be more useful. It would give you a hint to where the usage is located.
View ArticleComment by Zoredache on Is it normal for a debian server to have used 191GB...
ext does this partly because of issues related to fragmentation when the filesystem becomes full, and to protect you from non-root services completely filling your drive and crashing the system. You...
View ArticleComment by Zoredache on Can you make the `dd` command safe?
There is no way to prevent people from screwing things up. Don't give user access to login as root, and don't put them in the 'disk' group? Just have good backup system so you can recover things when...
View ArticleComment by Zoredache on Naming convention standard for Ethernet and Wi-Fi...
Is there a reason why you wouldn't look at something like lshw? Specifically inspect the contents of lshw -class network maybe? Look for everything that is capabilities: ethernet physical? Possibly...
View ArticleComment by Zoredache on Run rsync only if target directory exists?
If you don't mind it erroring out you can do something like rsync /src/. /target/. The trailing /. on the path will cause it to error out if the directory doesn't exist.
View ArticleComment by Zoredache on How to upgrade one single package and all its...
That should already be happening if you do apt-get install curl. At least if it is dependency information is correct in the package.
View ArticleComment by Zoredache on USB drive says it's full but it is not
Are all the files in a single directory? Don't remember the exact details but FAT has a smallish limit to the number of items that can be in a single directory.
View ArticleComment by Zoredache on Ansible adhoc command
Is the group 'hosts' in your inventory? Do you have hosts defined? Keep in mind that the 'command' module is not going to work, you must use the shell for your command since you have a | pipe..
View ArticleComment by Zoredache on how to ping & use specific network card
@lapo thanks, if you look at the history of this answer my comment was years before the update mentioning BSD. Also the comment from the original poster of the question is from person using the GNU...
View ArticleComment by Zoredache on I don't understand how "ls" command works
A directory is not the sum of its children, it is basically a table of references to location of its children.
View ArticleAnswer by Zoredache for What are the pros and cons to editing iptables...
Most people with this situation handle it with some abstraction.For example. Instead of having a single file with your rule set, why not build a set of files with your rules and concatenate them...
View ArticleIterate over the output of a command in bash without a subshell
I want to loop over the output of a command without creating a sub-shell or using a temporary file.The initial version of of my script looked like this, but this doesn't work since it creates a...
View ArticleAnswer by Zoredache for Delete files specified by the output of find: rm...
Well I would be tempted to do something like this instead, making the entire operation a single command.find /home/domain/imap/domain.com/ -mtime +190 \ \( -ipath '*/Maildir/new/*' -o -ipath...
View ArticleAnswer by Zoredache for ssh to a new user in ubuntu
How did you create the account? Looks like you did something unusual instead of using adduser username. I would guess that the home directory didn't get created properly, or /etc/skel didn't get copied...
View ArticleAnswer by Zoredache for How do I match a string with symbols in a grep-kind...
Use single quotes (') so $nnn isn't treated as a variable. Strings with " are interpolated strings, with a ' no interpolation happens.Heck just just look at the output when you prefeace that string...
View ArticleAnswer by Zoredache for How do I perform xargs grep on grep output that has...
Use something like this perhaps (if gnu grep).grep -r 'content pattern' --include==*.cppman grep--include=GLOB Search only files whose base name matches GLOB (using wildcard matching as described under...
View ArticleAnswer by Zoredache for Can administrating task of 'root' be divided to the...
The simple fact is that if a person can arbitrarily install programs then they probably can install a program that will run under root privileges, so they could install programs that would grant them...
View ArticleAnswer by Zoredache for Installing latest libcurl on debian from source
apt-get install libcurl-dev gives me an error: E: Package 'libcurl-dev' has no installation candidateWhat do you really need? It looks like the packages were renamed. And you get different dev packages...
View Article