You can create URL redirection service for your blog within five minutes using nothing but web server’s mod_redirect module. For example, when you type or share a url io9.in/t/5159 you will be automatically redirected to http://www.cyberciti.biz/tips/my-10-unix-command-line-mistakes.html. In this quick post I will explain how to create url shortener and integrate your wordpress based blog without installing any new scripts.
In Linux and UNIX system services are configured using various text files located in /etc/ or /usr/local/etc/ directory tree. A typical server system could have dozens of configuration files. You can check your configuration files for syntax errors without starting the server and validate all settings. In some cases, it is possible to check the sanity of specific data/config options and directories. Text files are easier to manage remotely. You can use ssh and a text editor. If there is an error in configuration, the server may not start. It may result in a disaster. This post explains how to quickly find out a syntax error for popular servers and test configuration file for syntax errors.
Our FAQ section is updated in last few days with new howto:
- Linux: Find Out What Partition a File Belongs To
- Linux: Neighbour Table Overflow Error and Solution
- Linux: Run fsck On LUKS (dm-crypt) Based LVM Physical Volume
- HowTo Run a Script In Linux
- HowTo Install firefox-8.0.tar.bz2 in Linux
- Linux / Unix curl: Pass HTTP Referer
- CentOS / RHEL: Remove Routes 169.254.0.0 / 255.255.0.0 From the System
- Linux: Reset High Speed USB Device Using ehci_hcd Error and Solution
Make the most of nixCraft FAQ Section
Feeling lonely this holiday season? Try Xsnow. This little app will let is snow on the desktop. Santa and his reindeer will complete your festive season feeling with moving snowflakes on your desktop, with Santa Claus running all over the screen.
Dennis Ritchie died at home this weekend after a long illness. I’m sure every “Unix” and “C” user will miss him.He was the key developer of the Unix and original developer of the C programming language.
Dennis MacAlistair Ritchie was an American computer scientist notable for developing C and for having influence on other programming languages, as well as operating systems such as Multics and Unix. He received the Turing Award in 1983 and the National Medal of Technology 1998 on April 21, 1999. Ritchie was the head of Lucent Technologies System Software Research Department when he retired in 2007.
Our FAQ section is updated in last few days with new howtos:
- Linux Find Out CPU Architecture Information
- Gnome Network Manager VPN Tab Disabled ( Greyed out )
- Gnome Volume Control: Disabled Sound Themes
- Debian Linux (Squeeze) Install Firefox 4
- UNIX: Find Out the Server Model
- Linux / UNIX: Run Command a Number of Times In a Row
- Linux: TMOUT To Automatically Log Users Out
- RHEL 6: Change OpenSSH Port To 1255 ( SELinux Config )
- RHEL 6: semanage SELinux Command Not Found
- HowTo: UNIX Set Date and Time Command
FAQ & Howtos RSS Feed
Get intimated about our new howtos / faqs as soon as it is released via RSS feed.
nixCraft is on Facebook!
Not our Fan yet? We suggest you become one right away! Just visit our Facebook Page. Click on the “like” button.
You can now enjoy mysteries of the sea from the safety of your own terminal using ASCIIQuarium. It is an aquarium/sea animation in ASCII art created using perl.
The purpose of a debugger is to allow you to see what is going on inside another program while it executes. It is useful to find out what another program was doing at the moment it crashed. I know most people will recommend GNU gdb, Nemiver, Valgrind or IDE such as Eclipse. I use gdb when it is really required; otherwise I debug the old fashioned way using printf() or cout statements.
Unix time (POSIX time) is a system for describing points in time, defined as the number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds.
This may come handy while writing cross-platform scripts.
If you don’t want to commit to the idiosyncrasies of a specific shell running on a particular platform, try the Squirrel Shell. The Squirrel Shell provides an advanced, object-oriented scripting language that works equally well on UNIX, Linux, Mac OS X, and Windows systems. Write a script once, and run it anywhere.
Squirrel is a high level imperative/OO programming language, designed to be a light-weight scripting language that fits in the size, memory bandwidth, and real-time requirements of applications like video games.