1
vote
1answer
114 views

Logrotate not picking up or acting on new configuration file

I had a logrotate configuration file set up for a log (let's call it Log1). It is working fine and the log is rotating everyday as expected. Yesterday I cloned this set up and modified it for three ...
3
votes
2answers
101 views

Customizing bash for many servers

I work with a few dozen servers. I'd really like to streamline my work, but at the same time I'm a bit reluctant, since it would be a lot of work synchronizing all servers. The servers are in ...
1
vote
2answers
358 views

What kind of file does /etc/inputrc belong to?

Seems like that the /etc/inputrc file conforms to the shell script syntax. But the file name does not end with a .sh. The first line in the file does not have a #!, either. Is it another kind of ...
11
votes
2answers
495 views

How to keep dotfiles system-agnostic?

Due to work I have recently started using OS X and have set it up using homebrew in order to get a similar experience as with Linux. However, there are quite a few differences in their settings. Some ...
1
vote
2answers
349 views

Augeas in shell script

I'm trying to use augtool in shell script ex: #!/bin/bash augtool <<-EOF print /augeas/load EOF However if I execute this script, the script will run indefinitely with no output and the CPU ...
5
votes
3answers
2k views

Editing config file via a bash script

I've been trying to write a simple bash script which I'll be using to install an application and update it's config file. I'm having hard time to have get it's config file modified. # ...
1
vote
2answers
76 views

Configure bash to execute command with last argument when no argument was provided

I would like to configure bash so that when I execute command (preferably from a list of commands, not any command) without an argument, it takes the argument of previous command. So, for example I ...
2
votes
3answers
1k views

Substitute placeholders in template

Say I have a shell configuration file config like this: HOST=localhost PORT=8080 Now I have a template template like this: The host is <%= @HOST %> The port is <%= @PORT %> How do I ...
11
votes
1answer
6k views

How do I set a user's default .bashrc file?

On Ubuntu 10.4 I have edited the /etc/bash.bashrc file to set some variables like the command history size (HISTSIZE=5000), however if I create a new users Ubuntu by default gives them a .bashrc file ...
6
votes
5answers
2k views

How do I configure mutt to display the date header in my local time zone in the pager?

When I view a message in the pager mutt displays the time in the Date header in UTC rather than my local time zone. The index view displays the local time correctly. I found this old mailing list post ...
6
votes
2answers
2k views

How to refresh all bash shells using a command/script?

Whenever I modify my .bashrc file, I have to go to each bash shell and source it again to effect the changes. Is there a better way to do this? Some command that run once will automatically do a ...