To get the command line of a process without the ps command, and the PID of the command is known, use this command. This example is using a process with a PID of 3380. jason@darknet:~$ cat /proc/3380/cmdline /usr/lib/vmware/bin/thnuclnt-pdir/tmp/vmware-jason/thnuclnt-3346-fgjason@darknet:~$ cat /proc/3380/cmdline /usr/lib/vmware/bin/thnuclnt-pdir/tmp/vmware-jason/thnuclnt-3346-fg This will show the command line of the process without using the ps command. …

The wikipedia2text command allows a command line user on Debian to output the contents of a Wikipedia article to a text file on your hard drive. Install this command this way: jason@darkstar:~/Documents$ sudo apt-get install wikipedia2textjason@darkstar:~/Documents$ sudo apt-get install wikipedia2text Then convert an article this way. jason@darkstar:~/Documents$ wikipedia2text Debian > Debian.txtjason@darkstar:~/Documents$ wikipedia2text Debian > Debian.txt …

There is a new package manager available for Windows 8.1, this allows the installation of Windows software with the Powershell command line. Windows PowerShell Copyright (C) 2014 Microsoft Corporation. All rights reserved. PS C:\WINDOWS\system32> Install-Package -name Chrome WARNING: Skipping package provider provider ‘NuGet’– missing required option ‘Destination’ The package ‘xChrome’ comes from a package source …

The update-grub will update the grub menu on Kali Linux. root@kali:~# update-grub Generating grub.cfg … Found background image: /usr/share/images/desktop-base/desktop-grub.png Found linux image: /boot/vmlinuz-3.12-kali1-amd64 Found initrd image: /boot/initrd.img-3.12-kali1-amd64 Found memtest86+ image: /boot/memtest86+.bin Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin No volume groups found done Just run this command and the GRUB menu will be updated ready for your …

The boxes utility for Linux allows you to render an ascii text box around text. Below is an example. homer@homer-eME730 19:14:21 ~ $ echo `echo "This is a sentence printed to the terminal."` | boxes /***********************************************/ /* This is a sentence printed to the terminal. */ /***********************************************/homer@homer-eME730 19:14:21 ~ $ echo `echo "This is a …

How to unzip files into a specific directory on your system. Just type the unzip command like this: unzip [zipfile.zip] -d [directoryname] homer@deep-thought ~/Downloads $ unzip gzdoom-bin-1-8-02.zip -d myfolder/ Archive: gzdoom-bin-1-8-02.zip inflating: myfolder/fmodex.dll inflating: myfolder/gzdoom.exe inflating: myfolder/brightmaps.pk3 inflating: myfolder/gzdoom.pk3 inflating: myfolder/lights.pk3 inflating: myfolder/licenses.ziphomer@deep-thought ~/Downloads $ unzip gzdoom-bin-1-8-02.zip -d myfolder/ Archive: gzdoom-bin-1-8-02.zip inflating: myfolder/fmodex.dll inflating: myfolder/gzdoom.exe …

I recently installed a different kernel on Linux Mint 14 and my ATI drivers were not working. To fix this I had to install the kernel headers for the appropriate kernel that I was running. john@adeptus-mechanicus ~ $ sudo apt-get install linux-headers-3.5.0-25-lowlatencyjohn@adeptus-mechanicus ~ $ sudo apt-get install linux-headers-3.5.0-25-lowlatency Then I could navigate to the directory …

To install a Debian *.deb packages that you have downloaded, use this command. john@adeptus-mechanicus ~/Downloads $ sudo dpkg -i rxvt_2.6.4-14_i386.deb This will install the Debian package. john@adeptus-mechanicus ~/Downloads $ sudo dpkg -i rxvt_2.6.4-14_i386.deb [sudo] password for john: Selecting previously unselected package rxvt. (Reading database … 281734 files and directories currently installed.) Unpacking rxvt (from rxvt_2.6.4-14_i386.deb) …

The sysctl command on Linux may be used to return information about your installed hardware; as well as virtual memory information. Below is an example looking at virtual memory information. zsh 7 % sysctl -a | grep vm sysctl: permission denied on key ‘kernel.cad_pid’ sysctl: permission denied on key ‘kernel.usermodehelper.bset’ sysctl: permission denied on key …

This code sample shows how we are wrapping a printf() statement onto multiple lines using backslashes. #include “stdio.h” #define hello “Hello World.” int main(int argc, char* argv[]) { printf(“This is a very long sentence we are handing down\n”\ “Mr smith, do you have anything to say for yourself”\ “?”); printf(“%s\n”, hello); return 0; } This …

Viewing information about network connections and devices is easy with the netstat -a command. The -i parameter allows you to view the information about your network adapters, the transmitted and received packets and the number of transmitted and dropped packets. flynn@ubuntu:~$ netstat -i Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR …