• Increase font size
  • Default font size
  • Decrease font size

Linux

How can I disable Squid's log files

 To disable access.log:

 

cache_access_log none

To disable store.log:

cache_store_log none

To disable cache.log:

cache_log /dev/null



It is a bad idea to disable the cache.log because this file contains many important status and debugging messages. However, if you really want to, you can



If /dev/null is specified to...

 

Can I use store.log to figure out if a response was cachable

 You can use store.log to find out if a particular response was cached.

 

Cached responses are logged with the SWAPOUT tag. Uncached responses are logged with the RELEASE tag.

However, your analysis must also consider that when a cached response is removed from the cache (for example due to cache replacement) it is also logged in store.log with the RELEASE tag. To differentiate these two, you can look at the filenumber (3rd) field. When an uncachable response is released, the...

 

How to Set File Permissions Using `chmod'

 Files and directories in Unix may have three types of permissions: read (`r'), write (`w'), and execute (`x'). Each permission may be `on' or `off' for each of three categories of users: the file or directory owner; other people in the same group as the owner; and all others.Files

To determine the mode (or permission settings) of a particular file, use the command `ls -lg filename'. This command will produce a message similar to the following:

-rwxr-x--x 1 owner group 2300 Jul 14 14:38...

 

How to Install Java in Linux

 Manual Non-RPM Method

This is the 'generic' variant that also works with GNU/Linux clones that do not support RPM. It does not require administrator rights and allows to install multiple java versions on the same computer. 1 Download the JDK from Sun[1].

Ads by Google Professional Linux Laptop  Linux on M6400, E6500, E6400, E4200 Fedora, Ubuntu, RHEL, Debian, Slack
www.EmperorLinux.com   2 Click on the "Download" link in the...

 

How to clear a print queue

 It may happen that you have send a real big job to the printer, and then you realize that, you forgot to change the paper size from A4 to letter, or any other scenario where you may need to change something in a document already sent to the printer queue, so now you need to cancel it.


So first lets see the spooler (Printer queue)

lpq

This will list all your jobs sent to the printer.

BJC-250 is readyRank Owner Job File(s) Total Size1st ggarron 248...

 

How Can I Change Linux File Permissions

 The general form of the chmod command is

chmod



To tell chmod the new permissions for a file, you can use any combination of these permission flag characters: WHO IT APPLIES TO ACCESS CHANGE ACCESS TYPE (pick one or more) (pick one) (pick one or more) u For the owner + Grant access r For read access g For the...

 

How To Unzip Large Files

 How To Unzip Large FilesGet (and unzip) the source code for unzip from your SRPMs or http://www.info-zip.org/ 


$ cd unzip-5.52$ vi unix/Makefile
Find the section begining


# Linux on 386 platform, using the assembler replacement for crc32.c. (-O4 and# -fno-strength-reduce have virtually no effect beyond -O3. Add "-m486# -malign-functions=2 -malign-jumps=2 -malign-loops=2" for Pentium [Pro]# systems.)linux: unix_make
Find the line


CF="-O3 -Wall -I. -DASM_CRC...

 

How can I reboot my Linux server from the command line

 Simply issue the reboot or shutdown -r command:

# shutdown -r now

 

How to Set up a Wireless Router

 Set up a Linksys Wireless Router
1 Choose and purchase a Linksys router, taking into account your budget and computing habits.

2 Attach the antennas to the Linksys wireless router.

3 Place the router in a central location, making sure it's not surrounded by metal. (A signal can't be obtained through metal.) The router should be located so that the distance between clients (computers) is somewhat equal. This will create a better connection.

4 Plug the Ethernet cable into the "Internet"...

 
Page 5 of 30