directory

How to Count Files in the Current Directory in Linux

If you want to get a count of how many files are in a specific directory, you can do so easily with a simple command. This command uses the -1 (that’s a one) parameter of ls to display each file on a new line, and then the -l (lowercase L) parameter of the wordcount (wc) [...]

How to Quickly share directory over HTTP in Linux

If  you want to share a folder through web .  Put this in your .bash_profile and login to your account. alias webshare=‘python -c ”import SimpleHTTPServer;SimpleHTTPServer.test()”‘ Now cd to the directory in question a do a simple webshare command. That folder will be accessible from any browser by typing http://your_ip:8000

What is the use of .htaccess file

.htaccess files (or “distributed configuration files”) provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof. Note: If you want to call your .htaccess file something else, you [...]

How to Perform mkdir and cd using a single command

Linux: Perform mkdir and cd using a single command If users are creating a new directory, they may cd to the new cirectory immediately to perform some work as shown below. Perform mkdir and cd using a single command: # mkdir -p /tmp/subdir1/subdir2/subdir3 # cd /tmp/subdir1/subdir2/subdir3 # pwd /tmp/subdir1/subdir2/subdir3 Add the following to the  .bash_profile [...]

How To Grant/Deny Access to Particular Web Files Using Apache

When browsing web files and directory, most bots, without consideration to .htaccess restrictions, have the capability to crawl and sniff files and folders located under your web root folder, even if these files and folders were not visually displayed from your web pages. Take for an example, you displayed a file under http://domain.com/folder1/folder2/folder3/page.html Most bots [...]

How to create a boot CD with the specified kernel in Linux

The kernel in Fedora Core 2 and higher is too big to fit on a floppy disk, so you’ll have to create a boot CD instead. Here are the steps. 1. Each installed kernel has a dedicated subdirectory for its modules in the /lib/modules directory. Get a listing of this directory. Here there are two [...]

How to Configure Advanced TCP/IP settings in Windows

The Advanced TCP/IP dialog will allow you to configure settings relative to DNS, WINS and specify multiple IP Addresses and Gateways. To bring up the Advanced TCP/IP Settings dialog, simply right click the desired connection from the Network Connections folder, and choose properties to open the Properties dialog of the selected connection. Now select Internet [...]

How to increase PageRank In WordPress by Putting NoFollow Relationship

Blogroll in WordPress displays a list of blogger’s favorite blogs in the sidebar of their blog. Blogroll provides links to external blogs in easily managed way. Some webmasters also use Blogroll to display backlinks to other external sites for link exchange or link buying. In reality, links added by WordPress blogroll is actually useless textlinks [...]

How to Allow or Deny countries with Apache htaccess

First you need to understand the meaning of these two rules in the htaccess file. If you set “deny” in the script for countries “US,CA” (USA and Canada), all traffic from USA or Canada will be blocked. On the other hand, if you set “allow” it will only accept traffic from these two countries, all [...]

How to Install Elgg – An open, flexible social networking engine

Elgg is an open, flexible social networking engine, designed to run at the heart of any socially-aware application. Building on Elgg is easy, and because the engine handles common web application and social functionality for you, you can concentrate on developing your idea. Elgg is open source. That means, when you use Elgg, you have [...]

How to configure Virtual Hosting using Apache 2 on Ubuntu

Virtual Hosting allow web servers to host more than one website on a sing machine. This is how sharing hosting works. I become pretty handy as well while develloping different web project on the same machine and allows you to access to your local repository using addresses such as http://dev.mysite.com instead of http://localhost/~myuser/myproject/ :) . [...]

How to configure xinetd package in fedora

 xinetd, the eXtended InterNET Daemon, is an open-source daemon which runs on many Linux and Unix systems and manages Internet-based connectivity. It offers a more secure extension to or version of inetd, the Internet daemon. xinetd performs the same function as inetd: it starts programs that provide Internet services. Instead of having such servers started [...]

How to Manage xinetd Programs

Many network enabled Linux applications don’t rely on themselves to provide restricted access or bind to a particular TCP port; instead they often offload a lot of this work to a program suite made just for this purpose, xinetd. The xinetd RPM is installed by default in Fedora Linux and uses /etc/xinetd.conf as its main [...]

How to Run quotacheck command

When each quota-enabled file system is remounted, the system is now capable of working with disk quotas. However, the file system itself is not yet ready to support quotas. To do this, you must first run quotacheck. The quotacheck command examines quota-enabled file systems, building a table of the current disk usage for each one. This table is [...]