Tag Info

New answers tagged


See http://stackoverflow.com/questions/16710341/linux-zip-command-add-a-file-with-different-name The solution below is the exact copy of the answer of @mkrnr on stackoverflow You can use zipnote which should come with the zip package. First build the zip archive with the myfile.txt file: zip archive.zip myfile.txt Then rename myfile.txt inside the zip ...


augtool -s set '/files/etc/mysql/my.cnf/target[ . = "mysqld"]/bind-address' The Ubuntu package is called 'augeas-tools'


Not saying this is a perfect solution by any means, but I think it basically accomplishes what you need. Just wrap the main script in a function and have a separate function to call the time. I'm sure this could be greatly improved upon to get the exact desired result, but here's what I came up with: #!/bin/bash tstamp() { date +[%T:%N]; } yourscript() ...


Instead of trying to adapt the output of your nested find oneliner to the default behaviour of sort, I propose you tell sort where to find the sorting key: ... | sort -t: -k2n This is of course assuming that none of your first-level directory names contains a colon.


If you are on an Ubuntu Server machine, then you should know that in Ubuntu the entries in ~/.ssh/known_hosts are hashed, so SSH completion cannot read them. The Canonical devs consider this a feature, not a bug. Even by adding HashKnownHosts no to ~/.ssh/config and /etc/ssh/ssh_config I was unable to prevent the host hashing. However, you can read the ...


If it's an Ubuntu server, the default login setup checks if any packages are updatable every time a login shell runs. If the package lists aren't in disk cache, this can take a second or two even on a fast idle desktop. $ ssh localhost Welcome to Ubuntu 15.04 (GNU/Linux 3.19.0-26-generic x86_64) * Documentation: https://help.ubuntu.com/ *** System ...


This is in most cases a timeout of a DNS request. Cause: The server attempts a reverse DNS lookup using the IP address of the client, and does not get a reply. If A connects to B, B tries to convert the IP address of A to a name. Workaround: Enter the IP-Address and name of the client to the hosts file of the server. Solution: make all hosts known to the ...


One possibility (covered by other answers) is that the process of setting up the SSH session itself is where the time is lost. Another alternative is that your shell startup scripts running on the remote machine after SSH session establishment have something that is taking a long time (perhaps attempting to access some broken network mount). You can debug ...


It's probably either waiting for DNS or trying to authenticate via LDAP or such. Try to add UseDNS no to /etc/ssh/sshd_config If it also does it on local logons, check if any LDAP servers or DNS servers you have configured are slow or unresponsive.


Quite a few things could be happening here. You can find most of the answers in your shell's manual, but those are usually incredibly long and oblique, so... Chances are your problem boils down to one of a few things. If your profile or bashrc have expensive things, consider trimming them back. If your profile or bashrc use a reverse DNS lookup (to set ...


You can check by running ps -ef amd seeing if /var/www/html/cacti/plugins/boost/poller_boost.php is running. That said, the path may be different for you, but there should still be a process with cacti/plugins/boost/poller_boost.php in it.


set -gx TERM screen-256color-bce; I had the exact same problem as you. replace the "l" with "g" as g means global.

Top 50 recent answers are included