January 19

Utilities: File and storage size conversion chart

File and storage size by
Bits and Bytes

bit byte Kilobyte Megabyte Gigabyte
bit 1 8 8,192 8,388,608 8,589,934,592
byte 8 1 1,024 1,048,576 1,073,741,824
Kilobyte 8,192 1,024 1 1,024 1,048,576
Megabyte 8,388,608 1,048,576 1,024 1 1,024
Gigabyte 8,589,934,592 1,073,741,824 1,048,576 1,024 1
Terabyte 8,796,093,022,208 1,099,511,627,776 1,073,741,824 1,048,576 1,024
Petabyte 9,007,199,254,740,992 1,125,899,906,842,624 1,099,511,627,776 1,073,741,824 1,048,576
Exabyte 9,223,372,036,854,775,808 1,152,921,504,606,846,976 1,125,899,906,842,624 1,099,511,627,776 1,073,741,824
Zettabyte 9,444,732,965,739,290,427,392 1,180,591,620,717,411,303,424 1,152,921,504,606,846,976 1,125,899,906,842,624 1,099,511,627,776
Category: Utilities | Comments Off on Utilities: File and storage size conversion chart
October 13

Utilities: Time Converter

Time Conversion Calculator

[iframe_loader src=”http://www.techpository.com/wp-content/uploads/2011/10/time.html” height=”1550″]

Definitions and Formula

A Helium Half-Life = 2.4e-21 Seconds
An Attosecond = .000000000000000001 Seconds
A Femtosecond = .000000000000001 Seconds
A Picosecond = .000000000001 Seconds
A Nanosecond = .000000001 Seconds
A Microsecond = .000001 Seconds
A High Speed Camera Shutter = .001 Seconds
A Millisecond = .001 Seconds
A Flash = .01 Seconds
A Camera Flash Shutter Sync = .01666666666666 Seconds
An Average Hummingbird Wingbeat Rate = .02 Seconds
A Blink of the Eye = .025 Seconds
Atom = 160 MilliSeconds
A Second = Foundational Base Factor of 1
A Minute = 60 Seconds
A Swatch Beat = 86.4 Seconds
A Moment = 1/40th Hour or 1.5 Minutes
An Ostent = 1/10th Hour or 6 Minutes
An Hour = 60 minutes or 3600 Seconds
A Day (Solar Day) = 24 Hours or 1000 Swatch Beats
A Week = 7 Days
A Fortnight = 14 Days
A Vinal = 20 Days
A Nodical Month = 27.212 Days
A Sidereal Month = 27.322 Days
An Anomalistic Month = 27.555 Days
A Lunar Month = 29.531 Days
A Financial Month = 30 Days
A Quarter = 91.3125 Days
A Financial Year (also called a Tun) = 360 Days
A Year = 365 Days
A Solar Year = 365 Days, 5 Hours, 48 Minutes, 46 Seconds
A Solar Year = 365.242 Days
An Averaged Calendar Year = 365.25 Days
A Synodic Year = 365.25462 Days
A Leap Year = 366 Days
A Decade = 10 Solar Years
A Metonic Cycle = 6940 Days
A Katun = 7200 Days
A Score = 20 Solar Years
A Generation = 30 Solar Years
A Sovereign Cycle = 60 Solar Years or 2 Generations
A Callipic Cycle = 27759 Days (roughly 76 Solar Years)
A Century = 100 Solar Years
A Baktun = 144000 Days or 20 Katuns
A Millenium = 1000 Solar Years
A Bismuth Half-Life = 2000042716454701.5 Millenium

Category: Utilities | Comments Off on Utilities: Time Converter
September 28

Utilities: CHMOD



Linux: CHMOD

Enter the permissions as needed for your files to find the numerical value to chmod your file.

Check the desired boxes or directly enter a valid
numeric number to see its value in other formats.

Permissions:

  Owner Group Other
Read
Write
Execute

Typical Chmod permissions values:

664 or -rw-r–r–   web pages and images viewed by surfers.
666 or -rw-rw-rw-  – log files or pages that are written to.
755 or -rwxr-xr-x  – perl scripts to make them executable.
755 or -rwxr-xr-x  – directories are usually given this value.
777 or -rwxrwxrwx  – for files that are written to by all.
777 or -rwxrwxrwx  – directories that have files created inside them.

What is Owner, Group and Other?

Owner – the user/owner of a file or directory.
Group – individuals who are in the same group.
Other – users that are not the owner or part of the group.


By using this calculator you agree that we are not liable for anything that may happen by your use.
__________________________________________________________________________

More about chmod

Changes the permission of a file.

Syntax

chmod [OPTION]… MODE[,MODE]… FILE…
chmod [OPTION]… OCTAL-MODE FILE…
chmod [OPTION]… –reference=RFILE FILE…
-c, –changes like verbose but report only when a change is made
–no-preserve-root do not treat `/’ specially (the default)
–preserve-root fail to operate recursively on `/’
-f, –silent, –quiet suppress most error messages
-v, verbose output a diagnostic for every file processed
–reference=RFILE use RFILE’s mode instead of MODE values
-R, –recursive change files and directories recursively
–help display this help and exit
–version output version information and exit

Permissions
u – User who owns the file.
g – Group that owns the file.
o – Other.
a – All.
r – Read the file.
w – Write or edit the file.
x – Execute or run the file as a program.

Numeric Permissions:
CHMOD can also to attributed by using Numeric Permissions:

400 read by owner
040 read by group
004 read by anybody (other)
200 write by owner
020 write by group
002 write by anybody
100 execute by owner
010 execute by group
001 execute by anybody

Examples

The above numeric permissions can be added to set a certain permission, for example, a common HTML file on a Unix server to be only viewed over the Internet would be:

chmod 644 file.htm

This gives the file read/write by the owner and only read by everyone else (-rw-r–r–).

Files such as scripts that need to be executed need more permissions. Below is another example of a common permission given to scripts.

chmod 755 file.cgi

This would be the following 400+040+004+200+100+010+001 = 755 where you are giving all the rights except the capability for anyone to write to the file.cgi file(-rwxr-xr-x).

chmod 666 file.txt

Finally, another common CHMOD permission is 666, as shown below, which is read and write by everyone.

Additional information

Below is an example of how a file may be listed when typing ( ls -l ) at the prompt as well as information on how to interpret it.

-rw-rw-r– 1   selene  123   Feb 03 15:36   file.txt

rw rw- r– 1 selene 123 Feb 03 15:36 file.txt
File owner group everyone else links owner size mod date file name

Related commands

Category: Linux, Utilities | Comments Off on Utilities: CHMOD