Most Popular
1500 questions
223
votes
6 answers
VirtualBox: How to set up networking so both host and guest can access internet and talk to each other
I was wondering if someone could give me a simple guide on how to set up virtual networking in VirtualBox (4.0.2) so that the following scenarios work:
Both Host and Guest can access the Internet
Host can ping Guest and vice versa
Host can access,…
Svish
- 7,527
223
votes
2 answers
SSH use only my password, Ignore my ssh key, don't prompt me for a passphrase
This is a question regarding the OpenSSH client on Linux, MacOSX and FreeBSD.
Normally, I log into systems using my SSH key.
Occasionally, I want my SSH client to ignore my SSH key and use a password instead. If I 'ssh hostname', my client prompts…
Stefan Lasiewski
- 24,361
- 42
- 136
- 188
222
votes
13 answers
Any benefit or detriment from removing a pagefile on an 8 GB RAM machine?
I'm running Windows 7 on a dual core, x64 AMD with 8 GB RAM.
Do I even need a page file?
Will removing it help or hurt performance?
Would it make a difference if this is a server or a desktop?
Does Windows 7 vs. Windows 2008 make a difference with a…
Jason
- 3,297
222
votes
10 answers
How to setup passwordless `sudo` on Linux?
How can passwordless sudo access be setup on either RHEL (Fedora, CentOS, etc) or Ubuntu distributions? (If it's the same across distros, that's even better!)
Setting: personal and/or lab/training equipment with no concern for unauthorized access…
warren
- 19,297
221
votes
11 answers
How to read backward from the end of file in less or more?
I've found one way so far: less +G filename, but it scrolls up line-by-line only with ↑.
What's a more powerful less usage which provides scrolling by page, backward pattern search, and so on?
yetanothercoder
- 2,315
- 2
- 14
- 6
220
votes
10 answers
How to refresh hosts file without rebooting
On Windows, how do you refresh the hosts file without rebooting?
kakridge
219
votes
17 answers
How do diff over ssh?
How do I diff files/folders across machines provided that the only connectivity available is ssh?
Alexey Timanovsky
- 3,561
218
votes
15 answers
How to reconnect to a disconnected ssh session
Is there a way to connect to an ssh session that was disconnected? We are having problems with our network connection to a remote site that we are working on separately; however, in the mean time we experience a large number of disconnects due to…
palehorse
- 4,489
217
votes
14 answers
How to view all ssl certificates in a bundle?
I have a certificate bundle .crt file.
doing openssl x509 -in bundle.crt -text -noout only shows the root certificate.
how do i see all the other certificates?
pdeva
- 2,677
216
votes
10 answers
Check if array is empty in Bash
I have an array which gets filled with different error messages as my script runs.
I need a way to check if it is empty of not at the end of the script and take a specific action if it is.
I have already tried treating it like a normal VAR and using…
Marcos Sander
- 2,171
216
votes
18 answers
How to use rsync over FTP
Any unix:
I have the following cmd line which works fine.
rsync -avr -e ssh /home/dir user@example.com:/home/
But I need to set it up now to rsync to a remote server that only has an FTP server on it.
How do I go about that?
I looked at the rsync…
bumperbox
- 2,363
215
votes
13 answers
hosts file ignored, how to troubleshoot?
The hosts file on Windows computers is used to bind certain name strings to specific IP addresses to override other name resolution methods.
Often, one decides to change the hosts file, and discovers that the changes refuse to take effect, or that…
Superbest
- 5,445
215
votes
3 answers
Difference between KVM and QEMU
I have been reading about KVM and Qemu for sometime. As of now I have a clear understanding of what they do.
KVM supports hardware virtualization to provide near native performance to the Guest Operating sytems. On the other hand QEmu emulates the…
Abhishek Gupta
- 2,285
- 3
- 14
- 7
215
votes
10 answers
How do I verify the speed of my NIC?
I just installed a new gigabit network interface card (NIC) in Linux. How do I tell if it is really set to gigabit speeds? I see ethtool has an option to set the speed, but I can't seem to figure out how to report its current speed.
User1
- 2,786
213
votes
5 answers
How to sleep in a batch file?
How to pause execution for a while in a Windows batch file between a command and the next one?
Massimo
- 72,827