Official Site

click here to view our new site launched

Pages

Sunday, February 24, 2013

File Permissions Made Easy - Command Line

Checking File Permission

ls -lart filename
or
ls -l filename

The file permissions can be displayed using the command:
% ls -l [filename]
For example, to display the permissions on the file myfile.txt, type the command:
% ls -l myfile.txt
-rw-r--r-- 1  lnp5jb  777  Dec 22  myfile.txt

Changing File Permissions

The easiest way is the symbolic method, which lets you specify access classes and types with single letter abbreviations.

chmod modes

In the command:
% chmod mode filename
the mode consists of three elements:
who
operator
permissions
The following options are possible:

who:

u user (owner)
g group
o other
a all

operators:

- remove permission
+ add permission
= assign permission

permissions:

r read
w write
x execute


For example:

  • to add permission for everyone to read a file in the current directory named myfile, at the Terminal , The  stands for "all", the  +  for "add", and the  r  for "read". you would enter: 
    • chmod a+r myfile
  • removes read and write permissions from others.
    • chmod o-rw file1.f
  • adds execute permission to the owner.
    • chmod u+x test

Saturday, February 16, 2013

Simple & Fun Trick of Computer

Let your computer speaks whatever you type:
 Folks, with this cool trick you create a small tool where you can type and convert in to voice. The process is very easy. All you have to do is : 
  •  Open notepad and paste the following code 
Dim message, sapi
message=InputBox("hello from csehackerz, Do you want your computer to speak?","Csehackerz Updates")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message 
  • Then click file, then click save as and choose any name and .vbs extension. For notepad the usual extension is .txt , so you have to change .txt extension to .vbs. For example , JSC.vbs 
  • That's it! Double click on the icon and box will pop up. Type whatever you want listen and click ok. The computer will speak the sentence you type in the box. 

Isn't it a cool trick? 
  • Notepad Trick
    • Open notepad and type .LOG in capital letters and press ENTER. You can record the exact date and time by using this trick.
  • Reserved Keyword Trick
    • Do you know that it is not possible make a folder with the name "con”? No matter how many times you try to make a folder with the name "Con", you won't be able to do it.The reason: Con is a "reserved keyword" used by DOS, so you can't create a folder with that keyword. However, there is a way to create a folder with the name “CON”. To do this, go to the command prompt and type "MD \\.\E:\CON” . This will create a folder named CON in the E drive of your Computer.
  • Strange Font
    • Open your notepad and increase the font size to 72, then change the font to Windings. Afterwards, type your name in capital letters. You’ll be surprised to see some peculiar symbols!
  • Desktop Wallpaper Prank
    • Take a screen shot of your desktop and then open the image and set it as your desktop background. Now, hide all the icons from your desktop. Also, unlock the task-bar. Now your desktop will look exactly the same as before, but all of the icons will not be clickable! This trick could easily confuse anyone and is a fun trick to play on some friends.
  • Microsoft Word Trick
    • Simply open up Microsoft Word and type =Rand (200, 99), then press enter. Hopefully you enjoy the magic!
$2.49 .COM at GoDaddy.com! Expires 5/14/13