Very useful Linux tips and tricks for the Linux desktop user.

How to make the Xterm font larger.Using the .inputrc file to control keybindings in xterm.Enabling color ls output.Viewing files with the command-line. How to make the Xterm font larger. To make the Xterm font larger, hold the left Ctrl key down and right-click on the xterm window to bring up…

Read More

Get the command line of a process without the ps command.

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 28633. ubuntu ~ $ cat /proc/28633/cmdline ; echo upstart-socket-bridge–daemonubuntu ~ $ cat /proc/28633/cmdline ; echo upstart-socket-bridge–daemon This…

Read More

How to convert a Wikipedia article to a text file using the Linux command line.

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

Read More

New Windows package manager available in Powershell 5.0 This is quite revolutionary.

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

Read More

How to update the grub menu manually on Kali Linux.

The update-grub command 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 doneroot@kali:~# update-grub Generating grub.cfg … Found background image: /usr/share/images/desktop-base/desktop-grub.png…

Read More

Some useful Linux commands and tricks for the bash shell user.

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 ~ $…

Read More

Some useful Linux tips for users that want the most out of the command-line. How to work with zipfiles.

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

Read More

How to install a Debian *.deb file on Ubuntu and other useful Linux tips.

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.debjohn@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…

Read More

Installing KDE 4.9 in Linux Mint 14 the easy way.

I have just installed KDE 4.9 in Linux Mint 14 the easy way. Just type sudo apt-get install kde-full to install all of the packages in one go. Since I have my dual desktop configuration laid out in my /etc/X11/xorg.conf file I had a properly working dual screen desktop as…

Read More

Sample C programming code. How to get input from the console.

This is a sample C program showing how to define a function as well as accepting input from the command-line. Hopefully this is useful for someone who is writing a console application for Linux or UNIX. #include <stdio.h> #include <string.h>   int main(int argc, char **argv) {   char *name;…

Read More