To list files in decreasing order of size, please execute the below command,
-=-=
ls -lR | grep ^- | sort -nr -k 5 | more
-=-==-
How to reset weird terminal
use the command,
-==-
reset
stty sane
=--=
How to record and playback terminal session,
-=-=
script -t 2> timing .log -a output.session
Now type the commands
...................................
Once complete execute the command exit.
The timing .log and output.session will be saved the current location.
To replay this , execute the command,
=-=-=-
scriptreplay timing .log output.session
-=-==-=
Done
How to optimize site,
To optimize site, make sure that that deflate_module(apache) is available in apache. Once this is verified, put the below in .htaccess,
-=-=
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
-==-=-=
To find the server load when logging to server , do the following ,
-------------
#!/bin/bash
gh=$(uptime | awk -F , '{print $3}')
echo -e "Server$gh\n"
-----------------
-=-=
ls -lR | grep ^- | sort -nr -k 5 | more
-=-==-
How to reset weird terminal
use the command,
-==-
reset
stty sane
=--=
How to record and playback terminal session,
-=-=
script -t 2> timing .log -a output.session
Now type the commands
...................................
Once complete execute the command exit.
The timing .log and output.session will be saved the current location.
To replay this , execute the command,
=-=-=-
scriptreplay timing .log output.session
-=-==-=
Done
How to optimize site,
To optimize site, make sure that that deflate_module(apache) is available in apache. Once this is verified, put the below in .htaccess,
-=-=
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
-==-=-=
To find the server load when logging to server , do the following ,
-------------
#!/bin/bash
gh=$(uptime | awk -F , '{print $3}')
echo -e "Server$gh\n"
-----------------