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. [email protected]:~$ cat /proc/3380/cmdline /usr/lib/vmware/bin/thnuclnt-pdir/tmp/vmware-jason/thnuclnt-3346-[email protected]:~$ 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: [email protected]:~/Documents$ sudo apt-get install [email protected]:~/Documents$ sudo apt-get install wikipedia2text Then convert an article this way. [email protected]:~/Documents$ wikipedia2text Debian > [email protected]:~/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. [email protected]:~# 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. [email protected] 19:14:21 ~ $ echo `echo "This is a sentence printed to the terminal."` | boxes /***********************************************/ /* This is a sentence printed to the terminal. */ [email protected]30 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] [email protected] ~/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: [email protected] ~/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 …

To change the username of an already created account on a UNIX or Linux system just follow this simple guide. I am changing the username mailman to mailman2. Firstly; open the /etc/shadow file with the VIM editor. [email protected] ~ % sudo vim.tiny /etc/shadow Then find the entry you are after and edit the name and …

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. [email protected] ~ $ sudo apt-get install [email protected] ~ $ 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. [email protected] ~/Downloads $ sudo dpkg -i rxvt_2.6.4-14_i386.deb This will install the Debian package. [email protected] ~/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) …

This is how to get the weather report for any American zip code with the Linux command-line. Type sudo apt-get install weather-util to install this utility on Linux Mint 14. In this example we are checking New York City. [email protected] ~ $ weather 10001 Current conditions at New York City Central Park, NY Last updated …

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 …

If you want to put line numbers in the output of a command; then feed it through the nl command. This will put the required line numbers there for you. [[email protected]]:~/Desktop> ls -hula | nl 1 total 452K 2 drwxr-xr-x 3 john john 4.0K Nov 14 10:46 . 3 drwxr-xr-x 46 john john 4.0K Nov …

To check the battery status of your Linux laptop; use the acpi command. This will display the status of your laptop battery. exempli gratia. [email protected] ~$ acpi Battery 0: Disharging, 40%, 00:48:32 remaining. This command also has many other options. This one shows the CPU temperature. [email protected] ~$ acpi -t Thermal 0: ok, 45.0 degrees …

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. [email protected]:~$ netstat -i Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR …