This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to your Apache source directory where your module source codes are stored. Here you can see many files with .c extension. | |
# cd httpd-VERSION/modules/mappers | |
# apxs -i -a -c mod_rewrite.c | |
Where | |
c = Compile the source code | |
i = Copy the compiled module (.so) file to the Apache module directory. | |
a = Activates the module is Apache, by adding required directives in httpd.conf. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See grep in Output. | |
$ ps ax | grep term | |
5327 ? Sl 0:01 gnome-terminal | |
5508 pts/0 S+ 0:00 grep --color=auto term | |
# Solution for this problem. | |
$ ps ax | grep [t]erm | |
5327 ? Sl 0:01 gnome-terminal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir out_dir && for i in *.JPG; do convert $i -quality 60 out_dir/$i; done |