Skip to main content

Posts

Showing posts with the label commands

Control Linux Box using Terminal

You can shutdown, restart a linux box from Terminal. You can use the following commands to do so Open Terminal Type in “ sudo restart ” to restart the system Sometimes you may get the error “command restart not found” if you get this error then try the commands using sudo /sbin/restart or sudo /sbin/shutdown –r now   Get more help on shutdown command using man shutdown

Useful Windows Commands

ipconfig : Used to see the IP address and the gateway mask. Can also be used to ipconfig /all : Displays all the available information for a system ipconfig /displaydns : This will display the local dns file ipconfig /flushdns : This command will clear the local dns file systeminfo : Get the operating system information using this command systeminfo /S <systemname> /U <username> : Get the operating system information for a remote system using this command tasklist : Does the same thing that starting a task manager would do…Display a list of tasks running on the system. taskkill /im <imagename> : Kills the process with the image name provided taskkill /pid <processid> : Kills the process with the process id provided type : read a file from command line using type… netstat : You can get to know who/what is getting connected to your system   netstat –a: displays all connection info netstat –b : displays the executable name in the netstat outpu...