Linux: Sort du -h (human-readable) Output By SizeFrequently Asked Questions...
I have a large number of files stored in ~/Downloads/ directory. How do I sort and print sizes in human readable format using du -h command under Ubuntu Linux LTS version 12.04 or any other Linux...
View ArticleTop 8 Tools To Search Memory Under Linux / Unix [ Forensics Analysis...
You can dump Linux or Unix server memory. This is useful for forensics analysis, and testing your own system. This is often desirable to see:What code and what data actually resides in memory.You can...
View ArticleRHEL / CentOS: Shell Script Wrapper TO Start / Stop / Restart NFSv4 Services...
A simple shell script wrapper to start / stop / restart NFSv4 service on CentOS / RHEL v.6.x server in a particular order. This script also demonstrates how to use the ln command to create soft links...
View ArticleRHEL / CentOS: Shell Script Wrapper TO Start / Stop / Restart NFSv4 Services...
A simple shell script wrapper to start / stop / restart NFSv4 service on CentOS / RHEL v.6.x server in a particular order. This script also demonstrates how to use the ln command to create soft links...
View ArticleLinux: Jpeg Image Optimization / Compress CommandFrequently Asked Questions...
I know how to optimize and compress png images using optipng command. line tool. I have lots of images in JPEG format. How do I compress and optimize JPEG images on my amazon cloud account so that I...
View ArticleFreeBSD: Delete User Account CommandFrequently Asked Questions About Linux /...
How do I remove the tom user under FreeBSD operating system using command line options?Read answer to: "FreeBSD: Delete User Account Command"
View ArticleLinux / Unix Shell Script: Get The Current DirectoryFrequently Asked...
I am working on a shell script. I need to find out the current working directory. How do I get the current working directory under Bash or Ksh shell running on Linux or Unix like operating systems?Read...
View ArticleSSH: WARNING: UNPROTECTED PRIVATE KEY FILE! Error and SolutionFrequently...
I'm setting up server on an Amazon EC2 compute instance powered by Suse Enterprise Linux server. I am using the following command to login into the my EC2 compute from OS X/Ubuntu desktop: ssh -i...
View ArticleLinux: Start / Stop / Restart ApparmorFrequently Asked Questions About Linux...
AppArmor is a Linux Security Module (LSM) implementation of name-based mandatory access controls (MAC). How do I start / stop / restart AppArmor under Ubuntu Linux or OpenSuse / Suse Enterprise Linux...
View ArticleLinux: Force Close A Socket / Port On Server In a TIME_WAIT StateFrequently...
I run a BT client and few other server program on Linux. Sometime these programs get overloaded with too many connections and crashes. If I restart my apps, I see lots of old IPs in a TIME_WAIT state....
View ArticleLinux / Unix: Use rsync Command Over FTPFrequently Asked Questions About...
How do I use rsync command to sync files to a remote host called web-42.vps running VSFTPD ftp server? Can you give me rsync ftp example for Unix like operating systems?Read answer to: "Linux / Unix:...
View ArticleApache / Nginx / Lighttpd: PHP Disable File UploadFrequently Asked Questions...
I am in the process of setting Apache and PHP for my small business server. I'm not utilizing file upload functionality in any of my PHP scripts. How do I disallow uploading files under CentOS or...
View ArticleLinux: Turn On TCP SYN Cookie ProtectionFrequently Asked Questions About...
I am under DoS attack. My cloud based server hosting company asked me to enable TCP SYN cookie protection to save my domain from SYN Attack. How do I turn on TCP Syn cookie protection under Ubuntu or...
View ArticleNginx: Block URL Access (wp-admin/wp-login.php) To All Except One IP...
I am the small business owner and runs my own web-site. I have noticed increased cracking activity against by blog. What's the best way to block WordPress URLs such as example.com/blog/wp-login.php and...
View ArticleAWK: Remove All Blank Spaces From String / FieldFrequently Asked Questions...
I need to parse the following text file: # example.net config user = www30021 group = ftp30020 uid = 30021 gid = 30020 tmp_path = /netapp42/shared/www/images/host.example.com/tmp.bin tmp_perms =...
View ArticleVIM: Jump Back To Previous or Last Cursor PositionFrequently Asked Questions...
Writing shell scripts in vim I usually go search for functions or something. Copy lines and then go back to where I was and modify the code. However, I need to manually navigate way back to the...
View ArticleHowTo: Check If a Directory Exists In a Shell ScriptFrequently Asked...
How do I check if a directory exists in a shell script under Linux or Unix like operating systems?Read answer to: "HowTo: Check If a Directory Exists In a Shell Script"
View ArticleHowTo: Check If a Directory Exists In a Shell ScriptFrequently Asked...
How do I check if a directory exists in a shell script under Linux or Unix like operating systems?Read answer to: "HowTo: Check If a Directory Exists In a Shell Script"
View ArticleDebian Linux Install Eclipse Java / C / C++ IDEFrequently Asked Questions...
How do I install Java and C/C++ integrated development environment called Eclipse under Debian GNU/Linux squeeze v6.xx?Read answer to: "Debian Linux Install Eclipse Java / C / C++ IDE"
View ArticleThe Following Packages Were Automatically Installed And Are No Longer...
I have the following message whenever I use the apt-get command under Debian or Ubuntu Linux:The following packages were automatically installed and are no longer required: libaccess-bridge-java...
View Article