Tag Info

Hot answers tagged

4

From Debian's bash README: What is /etc/bash.bashrc? It doesn't seem to be documented. The Debian version of bash is compiled with a special option (-DSYS_BASHRC) that makes bash read /etc/bash.bashrc before ~/.bashrc for interactive non-login shells. So, on Debian systems, /etc/bash.bashrc is to ~/.bashrc as /etc/profile is to ...


2

Using sed Starting with this file: $ cat >file EXIT_ON_GEN="true" //exit on successful generation of text file if true One method for changing true to false (and displaying the new version on the terminal) would use sed: $ sed 's/^EXIT_ON_GEN=[^[:space:]]*/EXIT_ON_GEN="false"/' file EXIT_ON_GEN="false" //exit on successful generation of text file if ...


1

You have several choices. You can use the .local domain name, which is reserved for machines that are not accessible from the Internet. (You can use it on a machine that can make outgoing connections to the Internet, or even from a machine that can but normally doesn't receive incoming connections from the Internet.) This name is reserved for that use, it ...


1

I have a GUI application (using wxPython) that imports data from elsewhere before processing two to seven data files to produce a CSV file, a PDF report and, if selected, a number of other report formats. I store the source data files (until archived) and reports in directory structures in $HOME/Documents. This works well but you have to stress to Users that ...


1

You can write a bash script that uses rsync to sync/copy your config files or folders and run it after you change something. example: $ rsync -az --progress --size-only /home/test/* server.example.com:/home/test/destination/ explained: -a archive, preserves all attributes like recursive ownership, timestamps, etc -z compress, saves bandwidth but is ...


1

From man bash: When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if these files exist. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of ...


1

As pointed out by Wieland, the /etc/conf.d/memcached file was removed when the package was changed to use a systemd unit. The /etc/conf.d directory was used by SysVinit, and hence no longer applicable. The options for the service can be edited by editing the systemd unit. The recommended way to do this is to run systemctl edit memcached.service --full. This ...


1

I just forced my VSFTPD to run only in active mode and that seemed to have worked for me. To do that put the following line in your config file: pasv_enable=NO



Only top voted, non community-wiki answers of a minimum length are eligible