I would like to know if there's a way to tell which local branch is tracking which remote branch in Git.
I'm using one remote server, which is named "origin".
I would like to know if there's a way to tell which local branch is tracking which remote branch in Git.
I'm using one remote server, which is named "origin".
I have recently found an argument against disabling a root user login in Linux at http://archives.neohapsis.com/archives/openbsd/2005-03/2878.html
I assume that, if everybody uses a public key authentication, there's no risk at losing the root password.
Is it always better to disable the root login via ssh?
I am running Ubuntu, and would like to open a file whose file name starts with "-"(minus). When I try to open the file with pico or vim, the command thinks that the "-" sign is an option for the command.
I tried enclosing the file name with quotes ('), but I still get the same error.
I tried with bash and zsh, but still the same error.
I heard that static contents like CSS and JavaScript can be better delivered in GZip format. And Content Developer Network (CDN) always does so.
However I don't understand how the format works. First when I tried making a gzipped file via command-line. The file extension is .gz
. This is different from .css
and .js
. How do browsers recognize which file is gzipped or not.
Second, how browsers "decompress" files? I dragged my index.html.gz
onto my browsers. But no one worked.
I've started to play with GNU Screen setting.
What's the difference between hardstatus and caption in GNU Screen?
hardstatus
seems to appear at the bottom on the Terminal, but
I don't even know what caption
really is yet.
Is there a way to tell which Linux flavor and version on the machine I am on running? This may be a strange question, but if I'm given a machine and connect to the monitor and the keyboard and if the machine is already running in run level 3, how do you tell what is running on the machine.
I tried to switch to 'root' in CentOS by running su
. It does change to 'root', but it doesn't seem to be a real 'root' user.
For example, by default, ifconfig
command in /sbin
is not found in the path for a normal user, but for 'root', the command can be found. When I run su
, I still get bash: ifconfig: command not found
output when I try to run ifconfig
.
However, when I run su -
, ifconfig
just works.
What is the difference between su
and su -
in CentOS?
I have a website that is running WordPress (PHP and MySQL). A website is very slow responding to requests.
As I look into a web inspector in Safari, the problem doesn't seem to be file sizes.
http://img.skitch.com/20100127-1yjnf586wdr3tx4akk8fj5qwhx.png
It's taking 5 seconds before serving contents. What are the measures I can take? I'm new to server administration, and this is just a shared server. I don't have a full control, but it may be worth trying to optimize.
I tried traceroute
and ping
commands, but the commands work without an issue.