Quantcast
Channel: nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)
Browsing all 2612 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

Bash Check If Shell Is Interactive or Not Under Linux / Unix Oses

How do I check in GNU/Bash if a shell is running in interactive mode or not while writing shell scripts?Read answer to: "Bash Check If Shell Is Interactive or Not Under Linux / Unix Oses"   

View Article


Image may be NSFW.
Clik here to view.

HowTo: Nginx Webserver Send Charset utf-8 Under Unix

I was told that to improve resource download parallelization in IE8 I need to send the character set to the HTTP Content-Type response header. How do I set charset utf-8 under nginx web server running...

View Article


Image may be NSFW.
Clik here to view.

PHP: Disable APC Module At Command Line CLI Scripts / Cron Scripts

I'm using php on a production web server along with APC which is a free, open source framework that optimizes PHP intermediate code and caches data and compiled code from the PHP bytecode compiler in...

View Article

Image may be NSFW.
Clik here to view.

4 Linux Commands To View Page Faults Statistics

How do I view minor and major page faults statistics for a process under Linux operating systems?Read answer to: "4 Linux Commands To View Page Faults Statistics"   

View Article

Image may be NSFW.
Clik here to view.

Linux ifdata Command: See Network Interface Info Without Parsing ifconfig Output

Reading an IP address in a shell script requires many time and various Linux distributions stores IP address in different text files. So most of us end up writing shell pipes/scripts to get the...

View Article


Image may be NSFW.
Clik here to view.

Linux / Unix Curl: Find Out If a Website Is Using Gzip / Deflate

How do I find out if a web-page is gzipped or compressed using Unix command line utility called curl? How do I make sure mod_deflate or mod_gzip is working under Apache web server?Read answer to:...

View Article

Image may be NSFW.
Clik here to view.

Lighttpd: Set Cache-Control: public, max-age Headers For Caching Purpose

I would like to use the Cache-Control header field to specify directives that MUST be obeyed by all caching mechanisms such as a proxy server and browsers. This will help to reduce latency and network...

View Article

Image may be NSFW.
Clik here to view.

Linux / Unix: Rsync Copy Hidden Dot Files and Directories Only

How do I use the rsync tool to copy only the hidden files and directory (such as ~/.ssh/, ~/.foo, and so on) from /home/jobs directory to the /mnt/usb directory under Unix like operating system?Read...

View Article


Image may be NSFW.
Clik here to view.

Linux / Unix: Sed / Grep / Awk Print Lines If It Got 3 Words Only

I have a sample data file: This is a test. Unix is Best. No Linux is the Best. Space in simple understanding is an area or volume. Outer space . I need the output: Unix is Best. Outer space . How do I...

View Article


Image may be NSFW.
Clik here to view.

Python Execute Unix / Linux Command Examples

How do I execute standard Unix or Linux shell commands using Python? Is there a command to invoke Unix commands using Python programs?Read answer to: "Python Execute Unix / Linux Command Examples"   

View Article

Image may be NSFW.
Clik here to view.

tar and rsync: Archive and Preserve SELinux Contexts, Extended Attributes,...

How do I use tar and rsync command that can preserve the ACLs, extended attributes and SELinux contexts under CentOS / RHEL / Fedora Linux server while making backups?Read answer to: "tar and rsync:...

View Article

Image may be NSFW.
Clik here to view.

HowTo: Listen Pandora In Europe ( Outside USA )

I have Pandora Internet Radio One subscription, and recently I moved to Europe for a few months as part of my work schedule. The service fully available only in the United States. How do I access...

View Article

Image may be NSFW.
Clik here to view.

Testing HTTP Status: 206 Partial Content and Range Requests

The HTTP 2xx class of status codes indicates the action requested by the client was received, and processed successfully. HTTP/1.1 200 OK is the standard response for successful HTTP requests. When you...

View Article


Image may be NSFW.
Clik here to view.

HowTo: Install Python idle IDE On Linux Operating System

Python is preinstalled on my Ubuntu / Debian Linux desktop. I'm unable to find IDLE integrated development environment for Python. How do I install IDLE IDE?Read answer to: "HowTo: Install Python idle...

View Article

Image may be NSFW.
Clik here to view.

yum Command: List The Contents (Files) Of A Package

The rpm -qi command list the files of a package. How do I use yum command to list the contents of a package under CentOS or RHEL installed on IBM server hardware?Read answer to: "yum Command: List The...

View Article


Image may be NSFW.
Clik here to view.

RHN yum command: Unable to read consumer identity Warning and Solution

I am using yum update command with RHN to upgrade packages installed on my server, but getting the following warning on screen :yum update -y Loaded plugins: product-id, protectbase, rhnplugin,...

View Article

Image may be NSFW.
Clik here to view.

Linux / Unix vi / vim: Open and Switch Between Multiple Files

I am new to Linux sysadmin work. I am using vi / vim text editor to edit files located in /etc/ directory. I open files using vi /etc/resolv.conf/etc/hosts I can edit the /etc/resolv.conf file only....

View Article


Image may be NSFW.
Clik here to view.

HowTo: Use Auto Config Proxy PAC File For Specific Domain

I would like to use the squid proxy server only for one domain called foo.example.com. How do I auto-configuring proxy settings with a PAC file to hide one domain and connect everything else directly?...

View Article

Image may be NSFW.
Clik here to view.

HowTo: Test a Proxy PAC File Syntax With Syntax Checker

How can I test a Proxy PAC file syntax under Apple OS X / Linux / *BSD or Unix like operating systems using command line options?Read answer to: "HowTo: Test a Proxy PAC File Syntax With Syntax...

View Article

Image may be NSFW.
Clik here to view.

Ubuntu Linux: Disable Apparmor For Specific Profile / Service Such As Mysqld...

AppArmor ("Application Armor") is a security module for the Linux kernel and integrated into both kernel and Ubuntu Linux. How do I disable AppArmor protection for mysql profile / service under Ubuntu...

View Article
Browsing all 2612 articles
Browse latest View live