Most Popular

1500 questions
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,827
  • 1
  • 18
  • 18
62
votes
8 answers

Is there a way to validate /etc/crontab’s format?

I prefer to stick scheduled tasks in /etc/crontab so I can see at a glance what's scheduled to run, regardless of which user the task runs as. The only gotcha is that the format isn't validated on save, unlike crontab -e -- so a stray character can…
Ben K.
  • 2,379
  • 4
  • 18
  • 15
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
  • 3
  • 14
  • 20
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,705
  • 19
  • 50
  • 51
62
votes
4 answers

Any difference between DOMAIN\username and [email protected]?

I'm trying to troubleshoot an obscure authentication error and need some background information. Is there any difference between how Windows (and programs like Outlook) process DOMAIN\username and [email protected]? What are the proper terms…
Josh Kelley
  • 983
  • 1
  • 7
  • 17
62
votes
7 answers

How to move files with SCP?

How to not copy but move files from one server to another (both Linux)? man scp didn't give me anything useful. I cannot use 'scp' then 'rm' because I must make sure the file is successfully transferred. If there is any error during transfer, the…
Putnik
  • 2,217
  • 4
  • 27
  • 43
62
votes
6 answers

Extracting files from Clonezilla images

Is there a way to browse Clonezilla images and extract individual files from them without restoring the whole image?
Ferruccio
  • 2,703
  • 2
  • 20
  • 10
62
votes
5 answers

Equivalent of logrotate on OSX

Is logrotate hiding somewhere on OSX, or is there an equivalent? It's not in /usr/sbin.
Steve Bennett
  • 5,750
  • 12
  • 47
  • 59
62
votes
3 answers

crontab running as a specific user

I need to run a script daily. The script should be run as a specific user (ex. user1) not as root. So I put the cron file at /etc/cron.d and put the user name in the line (2nd column). But it gives an error saying that the command is not found. I…
Sam Kong
  • 883
  • 1
  • 8
  • 10
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
  • 1
  • 5
  • 8
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
  • 1
  • 6
  • 7
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
  • 2
  • 10
  • 15
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,359
  • 4
  • 26
  • 23
62
votes
18 answers

iptables Tips & Tricks

I'm sure Linux sysadmins are quite familiar with iptables, the userland interface to the netfilter packet-filtering framework. Now, this "Question" is meant to be a Community Wiki for collecting together various bits-n-pieces of iptables wisdom.…
pepoluan
  • 5,038
  • 4
  • 47
  • 72
62
votes
3 answers

Unusual HEAD requests to nonsense URLs from Chrome

I have noticed unusual traffic coming from my workstation the last couple of days. I am seeing HEAD requests sent to random character URLs, usually three or four within a second, and they appear to be coming from my Chrome browser. The requests…
JeremyDWill
  • 893
  • 1
  • 7
  • 10