Most Popular
1500 questions
61
votes
8 answers
Rsync : copying over timestamps only
Currently I have two directories A/ and B/ which are identical in every respect, with the exception of the timestamps. Therefore if I run the command :
rsync --dry-run -crvv A/ B/
then all files are marked "uptodate", whereas the command :
rsync…
artella
- 1,009
- 2
- 10
- 6
61
votes
2 answers
How to ignore an error in Powershell and let it continue?
I am trying to see if a process is running on multiple servers and then format it into a table.
get-process -ComputerName server1,server2,server3 -name explorer | Select-Object processname,machinename
Thats the easy part - When the process does not…
Jake
- 2,268
- 5
- 30
- 40
61
votes
4 answers
Fastest way to extract tar.gz
Is there anyway to extract a tar.gz file faster than tar -zxvf filenamehere?
We have large files, and trying to optimize the operation.
Justin
- 5,328
- 19
- 64
- 84
61
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
- 807
- 2
- 9
- 12
61
votes
8 answers
Why would I need a firewall if my server is well configured?
I admin a handful of cloud-based (VPS) servers for the company I work for.
The servers are minimal ubuntu installs that run bits of LAMP stacks / inbound data collection (rsync). The data is large but not personal, financial or anything like that…
Aitch
- 1,179
- 8
- 14
61
votes
4 answers
How to use nginx to proxy to a host requiring authentication?
How can I setup an nginx proxy_pass directive that will also include HTTP Basic authentication information sent to the proxy host?
This is an example of the URL I need to proxy to:
http://username:[email protected]/export?uuid=1234567890
The…
bwizzy
- 1,295
- 4
- 14
- 17
61
votes
5 answers
What's the difference between 'useradd' and 'adduser'?
What's the difference between useradd and adduser? When/why should I prefer using one or the other?
lindelof
- 919
- 1
- 8
- 11
61
votes
8 answers
Overriding some DNS entries in BIND for internal networks
I have an internal network with a DNS server running BIND, connected to the internet through a single gateway. My domain "example.com" is managed by an external DNS provider. Some of the entries in that domain, say "host1.example.com" and…
Remy Blank
- 1,995
- 3
- 15
- 11
61
votes
5 answers
How can I set environment variable for just one command in fish shell?
In bash, I can do EDITOR=vim crontab -e. Can I get similar effect in Fish shell?
skalee
- 723
- 1
- 5
- 6
61
votes
3 answers
Mount Remote CIFS/SMB Share as a Folder not a Drive Letter
Is there any way to mount a remote CIFS/SMB/SAMBA share as a folder/directory and not as a drive letter. For example, I want this map:
\\Server\ShareName -> C:\Folder\ShareName
Instead of the usual map like this:
\\Server\ShareName -> Z:\
The…
Anagoge
- 713
- 1
- 6
- 7
60
votes
1 answer
What is the difference between a 'Login' and an 'Interactive' bash shell
What is the difference between a ‘Login’ and an ‘Interactive’ bash shell?
I have quoted Wikipedia below but can anybody give a better answer?
EDIT: This is a community wiki so maybe rather than voting to close you could provide examples of which…
Gareth
- 8,573
- 13
- 44
- 44
60
votes
5 answers
How to give username/password to git clone in a script, but not store credentials in .git/config
I am cloning a git repository in a script like this:
git clone https://user:[email protected]/name/.git
This works, but my username and my password! are now stored in the origin url in .git/config.
How can I prevent this, but still do this in a…
Nathan
- 733
- 1
- 5
- 7
60
votes
6 answers
"reboot" or "shutdown -r now": what restart command is safer?
We have in our organization around ~500 RedHat Linux machines.
On all the machines we installed applications and services under /etc/init.d, and oracle RAC servers. We intend to perform yum updates on all machines and after that take a reboot.
So I…
dandan
- 1,081
- 4
- 13
- 21
60
votes
14 answers
64-bit TortoiseSVN on Windows 7 says "file or directory is corrupted and unreadable" then runs chkdsk
I'm using 64-bit TortoiseSVN on a 64-bit Windows 7 Professional. Every so often a checkout or update will fail with an error message like the following.
Error: Can't move
Error: '[...]\\.svn\tmp\entries'
Error: to
Error: '[...]\\.svn\entries':…
David Alpert
- 1,605
- 2
- 15
- 11
60
votes
2 answers
What is the ipv6 equivalent of 0.0.0.0/0
When describing IPv4 networks, I can use 0.0.0.0/0 or just 0/0 to specify all networks. What is the equivalent notation for IPv6?
Andrew
- 1,134
- 3
- 10
- 16