Search This Blog

Tuesday, 7 July 2020

Linux Partitioning Disk & Formatting commands

Linux Partitioning Disk & Formatting commands

fdisk
man fdisk
pi@rasberrypi ~$ sudo fdisk -l

Sunday, 6 August 2017

Best way to find out what your interface is called in Linux

Best way to find out what your interface is called is by typing the following in bash:
$ nmcli dev status
What you see under DEVICE is what your interface is named. 

Monday, 31 July 2017

How to get system BIOS serial number in windows

To the wmic bios get serial number command call the Win32_BIOS wmi class and get the value of the Serial Number property, which retrieves the serial number of the BIOS Chip of your system.

Sunday, 15 January 2017

To change IP address using Command Line interface Windows

To change IP address using Command Line interface in Windows 7 use the following example ,



netsh int ipv4 set address name="LAN" address=192.168.14.52 mask=255.255.255.224
netsh int ipv4 add address name="LAN" address=192.168.7.251 mask=255.255.255.0
netsh int ipv4 add address name="LAN" gateway=192.168.14.33 gwmetric=0
netsh int ipv4 set dns name="LAN" source=static addr=192.168.7.254 register=PRIMARY
netsh int ipv4 add dns name="LAN" addr=192.168.5.254 index=2
netsh int ipv4 add dns name="LAN" addr=8.8.8.8 index=3
netsh int ipv4 add dns name="LAN" addr=8.8.4.4 index=4
netsh exit

To run it as a batch file save this file in notepad program as file extension .bat.

Sunday, 21 August 2016

HOW REMOVE USB SHORTCUT VIRUS Windows

HOW REMOVE USB SHORTCUT VIRUS

To remove sub shortcut virus you first scan it with antivirus to clean any infected files then type cmd in windows run now type the following commands in DOS,

attrib -h -r -s /s /d X:\*.*, (Where, X is the USB drive letter) and press Enter. 
(For example: If your drive letter is D, then the command is attrib -h -r -s /s /d D:\*.*)

After you run the command , hopefully it has resolved the shortcut problem you need to copy all files to your computer, then format the usb drive. Secondly we need to download and install a usbfix software to solve this problem for that click the following link 



Thanks! Keep commenting.....

Friday, 19 August 2016

ADD NEW USER IN UBUNTU AND GIVE RIGHTS IN Ubuntu Linux

ADD NEW USER IN UBUNTU AND GIVE RIGHTS


Sign in as root user and then add new user by following steps,


  1.  adduser newusername

    Give password to newuser
  2. To grant access rights use the following command,

    sudo visudo

    this will give the following script,

    root ALL= (ALL:ALL) ALL


    see the command pattern and add your new user ,
          root ALL= (ALL:ALL) ALL

          newuser ALL= (ALL:ALL) ALL

HOW TO UNLOCK SUPERUSER AND LOGIN AS ROOT IN Ubuntu

HOW TO UNLOCK SUPERUSER AND LOGIN AS ROOT

To unlock root us the following command,


  1. sudo password root

    you will be asked to enter password root password two times.
  2. Then unlock root user by following command

    sudo password -u root
  3. To lock it again use the following command

    sudo password -l root
  4. To login as root use the following command

    su root

    you will be asked for given root password
  5. To login interactively use the following command

    sudo -i

    username:  root
    password : ********

Linux Partitioning Disk & Formatting commands

Linux Partitioning Disk & Formatting commands fdisk man fdisk pi@rasberrypi ~$ sudo fdisk -l