Most Popular
1500 questions
62
votes
2 answers
Can rsync display current average speed?
When I'm transferring large quantities of data using rsync, it would be helpful if I could have the average speed up until now at a glance, rather than a bunch of different speeds for each file.
Fela Maslen
- 1,273
- 2
- 12
- 20
62
votes
8 answers
What are the advantages of tape drives?
IBM still develop and sell tape drives today. The capacity of them seems to be on a par with today's hard drives, but the search time and transfer rate are both significantly lower than that of hard drives.
So when is tape drives preferable to hard…
kba
- 2,877
- 1
- 19
- 18
62
votes
2 answers
Where are the logs for ufw located on Ubuntu Server?
I have an Ubuntu server where I am blocking some IPs with ufw. I enabled logging, but I don't know where to find the logs. Where might the logs be or why might ufw not be logging?
blockhead
- 881
- 1
- 8
- 13
62
votes
7 answers
Where does UFW (uncomplicated firewall) save command-line rules to?
You add a rule like this:
ufw allow 22/tcp
The rule is saved, and is applied even after reboot. But it's not written anywhere in /etc/ufw. Where is it saved to? (Ubuntu, using ufw as pre-installed.)
Steve Bennett
- 5,910
62
votes
13 answers
How to know if a machine is an EC2 instance
I would like to run some scripts on hosts which are EC2 instances but I don't know how to be sure that the host is really an EC2 instance.
I have made some tests, but this is not sufficient:
Test that binary ec2_userdata is available (but this will…
Kelindil
- 753
62
votes
5 answers
How to configure vsftpd to work with passive mode
Whenever I install vsftpd on centos, I only setup the jail environment for the users and rest is default configuration of vsftpd. I create user and try to connect with filezila ftp client, but I could not connect with passive mode. I always change…
Toqeer
- 1,241
62
votes
5 answers
How can I hide the output of a shell application in Linux?
How can I hide the screen output (printf) of a shell application in Linux?
Jader Dias
- 4,745
62
votes
2 answers
How can I configure nginx locations to share common configuration options?
How can i configure a shared config block for a set of locations?
location / {
proxy_pass http://127.0.0.1:9000/;
proxy_redirect off;
proxy_set_header Host $http_host;
…
netbrain
- 803
62
votes
4 answers
Can the environment variables tool in Windows be launched directly?
Is there a more direct way to the environmental variables GUI than the following?
Right click 'My Computer' and select 'Properties'.
Click 'Advanced System Settings' link.
Click 'Advanced' tab.
Click 'Environment Variables...' button.
Can I make a…
JasonV.com
- 781
62
votes
7 answers
Windows command prompt: how do I get the output of a command into a environment variable?
I want to have an environment variable that contains the day of week in cmd.exe.
When I run this command I get the result I want.
C:\Users\tisc> powershell (get-date).dayofweek
Friday
Here I'm trying to store the result in an environment…
Tim
- 721
62
votes
13 answers
What is the recommended size for a Linux /boot partition?
What is the recommended size for a Linux /boot partition?
And is it safe to not have a /boot partition?
I see some servers don't have a /boot partition while some servers have a 128 MB /boot partition. I am a little confused. Is /boot partition…
Tyler Liu
- 723
62
votes
5 answers
Bash find command verbose output
Is there way to tell the bash find command to output what it is doing (verbose mode)?
For example for the command:
find /media/1Tb/videos -maxdepth 1 -type d -mtime +7 -exec rm -rf {} \; to output:
Found /media/1Tb/videos/102, executing rm -rf…
Alex
- 1,868
62
votes
6 answers
How to pass password to scp command used in bash script?
Possible Duplicate:
Connect through SSH and type in password automatically, without using a public key
I have a bash script that makes dump of DB then copies file from one server to another but it always asks for password before connection.
scp…
chubbyk
- 883
62
votes
5 answers
How do you use apt-get to only install critical security updates on ubuntu?
How do you use apt-get to only install critical security updates on ubuntu?
We'd like to only upgrade packages that need to be upgraded for security reasons, without upgrading all other packages.
readonly
- 3,429
62
votes
2 answers
What user do scripts in the cron folders run as? (i.e. cron.daily, cron.hourly, etc)
If I put a script in /etc/cron.daily on CentOS what user will it run as? Do they all run as root or as the owner?
Kyle MacFarlane
- 817
- 2
- 9
- 12