This bash alias will take a directory name or path as an argument. alias goto=’cd $1’alias goto=’cd $1′ This is an example of how this alias works. [email protected]:~$ goto /usr/share [email protected]:/usr/[email protected]:~$ goto /usr/share [email protected]:/usr/share$ This is a very neat bash trick. This might not work if the directory name uses spaces though. Generate a very …

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/[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 command 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 [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 …

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] 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: myfolder/[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 …

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) …

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 …

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 [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]