Tuesday, 3 September 2019

15 Windows Useful Commands


1. Assoc



Most files in Windows are associated with a specific program that is assigned to open the file by default. At times, remembering these associations can become confusing. You can remind yourself by entering the command “assoc” to display a full list of file name extensions and program associations.

You can also extend the command to change file associations. For example, “assoc .txt=” will change the file association for text files to whatever program you enter after the equal sign. The “Assoc” command itself will reveal both the extension names and program names, which will help you properly use this command. You can probably do this more easily in the GUI, but the command line interface is a perfectly functional alternative.

2. Cipher


Deleting files on a mechanical hard drive doesn’t really delete them at all. Instead, it marks the files as no longer accessible and the space they took up as free. The files remain recoverable until the system overwrites them with new data, which can take some time.

The cipher command, however, wipes a directory by writing random data to it. To wipe your C drive, for example, you’d use the command “cipher /w:c”, which will wipe free space on the drive. The command does not overwrite undeleted data, so you will not wipe out files you need by running this command.

You can use a host of other cipher commands, however, they are generally redundant with BitLocker enabled versions of Windows.





3. Driverquery




Drivers remain among the most important software installed on a PC. Improperly configured or missing drivers can cause all sorts of trouble, so its good to have access to a list of what’s on your PC. That’s exactly what the “driverquery” command does. You can extend it to “driverquery -v” to obtain more information, including the directory in which the driver is installed.








You can use this command to identify differences in text between two files. It’s particularly useful for writers and programmers trying to find small changes between two versions of a file. Simply type “fc” and then the directory path and file name of the two files you want to compare.

You can also extend the command in several ways. Typing “/b” compares only binary output, “/c” disregards the case of text in the comparison, and “/l” only compares ASCII text.

So, for example, you could use the following:
fc /l "C:\Program Files (x86)\test1.doc" "C:\Program Files (x86)\test2.doc"
The above command compares ASCII text in two word documents.

5. Ipconfig




This command relays the IP address that your computer is currently using. However, if you’re behind a router (like most computers today), you’ll instead receive the local network address of the router.

Still, ipconfig is useful because of its extensions. “ipconfig /release” followed by “ipconfig /renew” can force your Windows PC into asking for a new IP address, which is useful if your computer claims one isn’t available. You can also use “ipconfig /flushdns” to refresh your DNS address. These commands are great if the Windows network troubleshooter chokes, which does happen on occasion.

6. Netstat




Entering the command “netstat -an” will provide you with a list of currently open ports and related IP addresses. This command will also tell you what state the port is in – listening, established or closed.

This is a great command for when you’re trying to troubleshoot devices connected to your PC or when you fear a Trojan infected your system and you’re trying to locate a malicious connection.

7. Ping



Sometimes, you need to know whether or not packets are making it to a specific networked device. That’s where ping comes in handy.

Typing “ping” followed by an IP address or web domain will send a series of test packets to the specified address. If they arrive and are returned, you know the device is capable of communicating with your PC; if it fails, you know that there’s something blocking communication between the device and your computer. This can help you decide if the root of the issue is an improper configuration or a failure of network hardware.

8. PathPing



This is a more advanced version of ping that’s useful if there are multiple routers between your PC and the device you’re testing. Like ping, you use this command by typing “pathping” followed by the IP address, but unlike ping, pathping also relays some information about the route the test packets take.

9. Tracert


The “tracert” command is similar to pathping. Once again, type “tracert” followed by the IP address or domain you’d like to trace. You’ll receive information about each step in the route between your PC and the target. Unlike pathping, however, tracert also tracks how much time (in milliseconds) each hop between servers or devices takes.

10. Powercfg


Powercfg is a very powerful command for managing and tracking how your computer uses energy. You can use the command “powercfg hibernate on” and “powercfg hibernate off” to manage hibernation, and you can also use the command “powercfg /a” to view the power-saving states currently available on your PC.

Another useful command is “powercfg /devicequery s1_supported”, which displays a list of devices on your computer that support connected standby. When enabled, you can use these devices to bring your computer out of standby — even remotely. You can enable this by selecting the device in Device Manager, opening its properties, going to the Power Management tab and then checking the Allow this device to wake the computer box.

“Powercfg /lastwake” will show you what device last woke your PC from a sleep state. You can use this command to troubleshoot your PC if it seems to wake from sleep at random.




You can use the “powercfg /energy” command to build a detailed power consumption report for your PC. The report saves to the directory indicated after the command finishes. This report will let you know of any system faults that might increase power consumption, like devices blocking certain sleep modes, or poorly configured to respond to your power management settings.

Windows 8 added “powercfg /batteryreport”, which provides a detailed analysis of battery use, if applicable. Normally output to your Windows user directory, the report provides details about the time and length of charge and discharge cycles, lifetime average battery life, and estimated battery capacity.

11. Shutdown




Windows 8 introduced the shutdown command that—you guessed it!—shuts down your computer.


This is, of course, redundant with the already easily accessed shutdown button, but what’s not redundant is the “shutdown /r /o” command, which restarts your PC and launches the Advanced Start Options menu, which is where you can access Safe Mode and Windows recovery utilities. This is useful if you want to restart your computer for troubleshooting purposes.

12. Systeminfo




This command will give you a detailed configuration overview of your computer. The list covers your operating system and hardware. For example, you can look up the original Windows installation date, the last boot time, your BIOS version, total and available memory, installed hotfixes, network card configurations, and more.

Use “systeminfo /s” followed by the host name of a computer on your local network, to remotely grab the information for that system. This may require additional syntax elements for the domain, user name, and password, like this: “systeminfo /s [host_name] /u [domain]\[user_name] /p [user_password]”

13. System File Checker




System File Checker is an automatic scan and repair tool that focuses on Windows system files.


You will need to run the command prompt with administrator privileges and enter the command “sfc /scannow”. If SFC finds any corrupt or missing files, it will automatically replace them using cached copies kept by Windows for this purpose alone. The command can require a half-hour to run on older notebooks.

14. Tasklist



You can use the “tasklist” command to provide a current list of all tasks running on your PC. Though somewhat redundant with Task Manager, the command may sometimes find tasks hidden from view in that utility.
There’s also a wide range of modifiers. “Tasklist -svc” shows services related to each task, use “tasklist -v” to obtain more detail on each task, and “tasklist -m” will locate .dll files associated with active tasks. These commands are useful for advanced troubleshooting.

15. Taskkill





Tasks that appear in the “tasklist” command will have an executable and process ID (a four- or five-digit number) associated with them. You can force stop a program using “taskkill -im” followed by the executable’s name, or “taskkill -pid” followed by the process ID. Again, this is a bit redundant with Task Manager, but you can use it to kill otherwise unresponsive or hidden programs.

Sunday, 30 December 2018

Who is a Hacker? Types of Hackers

A Hacker is a person who finds and exploits the weakness in computer systems and/or networks to gain access. Hackers are usually skilled computer programmers with knowledge of computer security.
Hackers are classified according to the intent of their actions. The following list classifies hackers according to their intent.
1) Ethical Hacker (White hat): A hacker who gains access to systems with a view to fix the identified weaknesses. They may also perform penetration Testing and vulnerability assessments.

2) Cracker (Black hat): A hacker who gains unauthorised access to computer systems for personal gain. The intent is usually to steal corporate data, violate privacy rights, transfer funds from bank accounts etc.

3) Grey hat: A hacker who is in between ethical and black hat hackers. He/she breaks into computer systems without authority with a view to identify weaknesses and reveal them to the system owner.

4) Script kiddies: A non-skilled person who gains access to computer systems using already made tools.

5) Hacktivist: A hacker who use hacking to send social, religious, and political, etc. messages. This is usually done by hijacking websites and leaving the message on the hijacked website.

6) Phreaker: A hacker who identifies and exploits weaknesses in telephones instead of computers.

Why Should We Stop Watching Television Now : 11 Reasons

Are you losing your life to television? Few people realise the number of issues that television causes in our life.
While many people will argue that a little bit of TV never hurt anyone, the amount of a “little bit” is constantly in debate. A Neilson report found that the average American watches more than 34 hours of television each week.
If that number doesn’t shock you I don’t know what will. If you’re now thinking “Those people are crazy—I’d never watch that much” then I invite you to do your own maths. Simply write down all the shows you watched this week and how long they were (including commercials if it was live) plus movies, YouTube videos, etc. and work out roughly how much time you spent in front of the screen.
That number is how many hours you’re losing each week to television. This is time that could be spent with your family, friends or relaxing in other ways. Today we’ll look at some more reasons why you should stop watching television, and how it will improve your life

1) Wasting Time

It’s pretty obvious that when you’re watching TV you’re not doing anything else. Time spent watching television is similar to being asleep (although you will see some other consequences below). The question is whether you want to spend even more time in your precious day asleep.

2) Missing Out on Social Interaction

Every hour you spend in front of the TV is another hour you’re not making the most of your life. You could be playing with your family, hanging out with friends or doing an activity you enjoy. Connection is one of the basic human needs we all have and it will never be fulfilled by your television set.

3) Programming Yourself with Negativity

Just about every television show, from comedies to drama to reality TV and the news, is negative. If you look at almost any TV show there is a complete lack of positive redeeming messages. While there are exceptions to this rule they are few and far between, so choose carefully what you decide to spend your time watching.

4) TV Poisons Your Belief Systems

In comedies, we laugh at the stupid/overweight/socially awkward/racial stereotype/different people. The news is filled with stories of pain/suffering/disaster/death, and arguing and drama has to be about problems in order to create the drama. All of this is affecting your outlook on life and the way you see the world.

5) It Creates Unrealistic Expectations

Television distorts our understanding of reality. It’s filled with beautiful people doing amazing things and having great adventures every show. Ask any TV or movie star with half a brain and they’ll tell you that the images you see of them on the screen and magazine covers are completely fake.

6) Feelings of Inadequacy

Life is never going to be like a TV show and this can make people very disillusioned when they compare it with their real life. The messages within television imply on a regular basis that we’re not pretty/smart/funny enough. Our lives can feel quite empty when compared to the perfection of the TV world.

7) Subliminal Programming and Advertising

Make no mistake that there is only one reason why television exists, and that is to sell products. No one is producing TV shows because they want to create great art. Every single part of every single TV program is designed to keep you in front of the TV and prepped to buy the advertised products through traditional advertising or product placements.
Television is designed to make you feel bad so you will buy products that make you feel better. It’s the ultimate in mind control systems. Companies figured out how to get us to voluntarily brainwash ourselves for their benefit.

8) It Degrades Your Self Control and Discipline

Thanks to the incredible psychological hooks that television uses, it’s very hard to stop watching it. We lose our self control and cannot turn off the television even though we may want to. As this continues, our self control and discipline decrease even further and the harder the battle becomes.

9) The Health Effects of Sitting Down

We now live a more sedentary life than ever before with most people having jobs behind a desk. We compound this problem when we go home and sit down in front of the TV as well, because the electrical activity in our muscles stops when we’re sitting. Research is showing even the most basic movement of walking or moving our bodies in subtle ways can make a big difference to our health.

10) We Teach Our Children These Habits

Children are now being trained to watch TV and live a sedentary lifestyle. There is a lot of research showing the negative effects on a child’s development due to both inactivity and the influence of television. Your children will imitate your lifestyle. so any choice you make will be echoed in the generations that follow.

11) Is It Really Relaxing?

My personal argument for watching TV is that it’s easy. You stop working for the day and get to relax and turn off your brain for a while, but the reality is that what is easy for us is hardly ever the best thing.
I also get to relax when I’m out at a kung fu or dance class. I get to relax when I’m hanging out with friends or spending time with my girlfriend. I also get to relax when reading a book, listening to uplifting audio or even watching uplifting videos (like TED talks or educational materials).
We get one life to live and it’s up to us to make the most of it. Every hour of the day is an investment that pays off right now and in our future. Invest wisely and your life will actually be filled with truly beautiful people doing amazing things and having great adventures.
It’s time to stop watching television and start living instead.

Monday, 14 May 2012

Albert Eeinstein


                                    ''
Einstein was once travelling from Princeton on a train when the conductor came down the aisle,

punching the tickets of every passenger.
When he came to Einstein,
Einstein reached in his vest pocket.
He couldn’t find his ticket,