Windows Short Commands

 

  • Start Run
    Win+R, then type cmd, then press enter
    Start Command Prompt. Starts Traditional Run Window then Command Prompt, or any other run command
    Win, then type cmd, then press Ctrl+Shift+Enter
    Start Command Prompt as Administrator. Start New Windows Search, then Command Prompt, or any other application
  • Control Panel Program Shortcuts
    control
    Control Panel
    control desktop
    Display Properties (Personalization)
    control color
    Personalization – Color and Appearance
    control folders
    Folders Properties
    control keyboard
    Keyboard Properties
    control mouse
    Mouse Properties
    control netconnections
    Network Properties
    control printers
    Printers Folders
    control userpasswords
    Manager User Account
    control userpasswords2
    Manager User All Accounts
    control update
    Windows Update
    control admintools
    Administrative Tools
    control schedtasks
    Scheduled Tasks
    appwiz.cpl
    Application Wizard (Program and Features)
    powercfg.cpl
    Power Configuration
    timedate.cpl
    Date and Time Properties
    desk.cpl
    Display – Screen Resolution
    intl.cpl
    Regional Properties(International)
    mmsys.cpl
    Sound Properties(Multimedia System Settings)
    inet.cpl
    Internet Properties (Internet Control Panel)
    wscui.cpl
    Security Center (Windows Security Center UI)
    sysdm.cpl
    System Properties
    utilman
    Ease of Access Utility Manager
    firewall.cpl
    Windows Firewall
  • Commonly used Windows Tools
    explorer
    Windows Explorer
    C:
    Explorer C: Drive
    regedit
    Registry Editor
    services.msc
    Windows Services (Local)
    taskmgr
    Task Manager
    msconfig
    System Configuration Utility
    mstsc
    Remote Desktop (Microsoft Terminal Services)
    logoff
    Logoff Windows (Without Confimation)
    shutdown
    Shuts Down Windows
    calc
    Calculator
    cmd
    Command Prompt
    notepad
    Notepad
  • Microsoft System Configurations
    devmgmt.msc
    Device Management
    eventvwr.msc
    Event Viewer
    compmgmt.msc
    Computer Management including System Tools, Storage, Services and Appliations
    diskmgmt.msc
    Disk Partition Manager
    dcomcnfg
    Component Services (Detailed Component Configuration)
    gpedit.msc
    Group Policy Editor
    secpol.msc
    Local Security Policy Settings
    lusrmgr.msc
    Local User and Groups
    perfmon.msc
    Performance Monitor
    fsmgmt.msc
    Shared Folders (File Sharing Management)
  • Other Windows Tools
    shrpubw
    Create a shared folder Wizard
    dxdiag
    Direct X Troubleshooter
    cleanmgr
    Clean Manager – Disk Cleanup Utility
    clipbrd
    Clipboard Viewer
    msiexec
    Windows Installer Details
    magnify
    Windows Magnifier
    osk
    On Screen Keyboard
    msinfo32
    System Information
    sndvol
    Volume Control
    winver
    Windows Version ( shows your windows version )
    comp
    Compare Files
    ftp
    MS-Dos FTP
    label
    Volume Serial Number for C:
    fsquirt
    Bluetooth Transfer Wizard
    verifier
    Driver Verifier Utility
    migwiz
    Migration Wizard – Files and Settings Transfer Tool
    sigverif
    File Signature Verification Tool
    fonts
    Fonts
    joy.cpl
    Game Controllers
    mrt
    Malicious Software Removal Tool
    eudcedit
    Private Characters Editor
  • Applications (if installed)
    acrobat
    Adobe Acrobat ( if installed )
    photoshop
    Adobe Photoshop ( if installed )
    ccleaner
    Ccleaner ( if installed )
    chrome
    Chrome Browser ( if installed )
    excel
    Microsoft Excel ( if installed )
    access
    Microsoft Access ( if installed )
    powerpnt
    Microsoft Powerpoint ( if installed )
    winword
    Microsoft Word ( if installed )
    wmplayer
    Windows Media Player
    write
    Wordpad
    mspaint
    Paint
  • IP Config Commands (leave Dos Windows open)
    ipconfig /all
    IP Configuration (Display Connection Configuration)
    ipconfig /displaydns
    IP Configuration (Display DNS Cache Contents)
    ipconfig /flushdns
    IP Configuration (Delete DNS Cache Contents)
    ipconfig /release
    IP Configuration (Release All Connections)
    ipconfig /renew
    IP Configuration (Renew All Connections)
    ipconfig /registerdns
    IP Configuration (Refreshes DHCP & Re-Registers DNS)
    ipconfig /showclassid
    IP Configuration (Display DHCP Class ID)
    ipconfig /setclassid
    IP Configuration (Modifies DHCP Class ID)
  • System File Checker Utility
    sfc /scannow
    System File Checker Utility ( Scan Immediately )
    sfc /scanonce
    System File Checker Utility ( Scan Once At Next Boot )
    sfc /scanboot
    System File Checker Utility ( Scan On Every Boot )
    sfc /revert
    System File Checker Utility ( Return to Default Settings)
    sfc /purgecache
    System File Checker Utility ( Purge File Cache )
    sfc /cachesize=x
    System File Checker Utility ( Set Cache Size to Size x )
0

MySql Password Change

How to change root password for mysql and phpmyadmin

It depends on your configuration.
Follow the instruction below to reconfigure phpmyadmin, and reset MySQL password.

Ctrl + Alt + T to launch terminal
sudo dpkg-reconfigure phpmyadmin
Connection method for MySQL database for phpmyadmin: unix socket
Name of the database’s administrative user: root
Password of the database’s administrative user: mysqlsamplepassword
MySQL username for phpmyadmin: root
MySQL database name for phpmyadmin: phpmyadmin
Web server to reconfigure automatically: apache2
ERROR 1045
ignore
sudo dpkg-reconfigure mysql-server-5.5
New password for the MySQL “root” user: mysqlsamplepassword
Repeat password for the MySQL “root” user: mysqlsamplepassword
After all this run following command on terminal to secure your mysql server.
sudo mysql_secure_installation
Enter current password for root (enter for none): mysqlsamplepassword
Change the root password? [Y/n] n
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

0

Fixing Partition Failed Errors on Mac OSX

Fixing “Partition Failed” Errors in Mac OS X

Reboot the Mac into Single User Mode by holding Command+S during boot
At the command prompt, type:
/sbin/fsck -fy

When fsck is complete, type “exit” or “reboot” to reboot.
Boot the Mac as usual, verify the disk again in Disk Utility, and partition as usual Boot the Mac as usual and relaunch Disk Utility to verify the disk.
Go ahead and partition the drive as usual, this time without any such error message.

0

Disk Partitioning on Ubuntu

Disk partitioning on Ubuntu with terminal

fdisk -l
to show the partitions and then:

fdisk /dev/sdb

n

p

1

[enter]

[enter]

w
and then:

mkntfs /dev/sdb1
in that order to partition the drive.
Obviously if anyone used they replace sdb and sdb1 to their own if needed.

0

Changing the root directory of an Apache Server

That this only applies for Ubuntu 14.04 LTS and newer releases.
In Ubuntu 14.04 LTS, the document root was set to /var/www/html. It was configured in the following file:
/etc/apache2/sites-available/000-default.conf

So just do a
sudo nano /etc/apache2/sites-available/000-default.conf

and change the following line to what you want:
DocumentRoot /var/www/html

Also do a
sudo nano /etc/apache2/apache2.conf

and find this
Options Indexes FollowSymLinks
AllowOverride None
Require all granted

and change /var/www/html to your preferred directory and save it.

After you saved your changes, just restart the apache2 webserver and you’ll be done…

sudo service apache2 restart

0