Some even more useful Linux commands and tricks for the Linux command-line user.

Some interesting and useful Linux shell commands Linux has some very useful and interesting commands available to the Linux desktop user to find out information about your computer system. Some of these hearken back to the days of the old Linux terminals; when you accessed your computer from a dumb terminal instead of a graphical … Read more

Interesting command line tricks on Windows.

There are quite a few interesting command-line tricks for Windows. Create a folder named CON. This is quite difficult to delete. echo "hello" > \\.\C:\Users\shawn\Documents\CONecho "hello" > \\.\C:\Users\shawn\Documents\CON Another interesting trick is one. C:\Users\Dyatlov\Downloads\testing>echo "" > ….::$INDEX_ALLOCATION The system cannot find the file specified.C:\Users\Dyatlov\Downloads\testing>echo "" > ….::$INDEX_ALLOCATION The system cannot find the file specified. This … Read more

How to get the IP address of your computer with Powershell.

This is how to get the current IP address of the active network adapter in your Windows system. PS C:\Users\Doom> (Test-Connection -ComputerName (hostname) -Count 1).IPV4Address.IPAddressToString 192.168.1.2PS C:\Users\Doom> (Test-Connection -ComputerName (hostname) -Count 1).IPV4Address.IPAddressToString 192.168.1.2 This prints the IP address of your machine to the Powershell terminal. This is a great way to get just the IP … Read more

How to get multicolored output when watching a file with Linux.

The tail command is a good way to see new content in a file, but it is monochrome output. But there is a better way to monitor files. Use the multitail command instead. This will print muticolored output when printing the last few lines of a file. Install this utility. sudo apt install multitailsudo apt … Read more

Setting a larger console font on Ubuntu 12.04.

Setting a larger console font on Ubuntu Linux 12.04. To do this first get to a text console by pressing Ctrl-Alt-F2 and login with your username ↦ password, then type this command to set a larger font. setfont /usr/share/consolefonts/Lat7-TerminusBold28x14.psf.gzsetfont /usr/share/consolefonts/Lat7-TerminusBold28x14.psf.gz This is a nice large font and is more readable if you are on a … Read more

How to fix garbled console font in Ubuntu 15.04 Linux.

The console font in Ubuntu 15.04 can be quite garbled when a console application is loaded that requires ncurses characters to draw an interface. There as easy fix for this. Run this command in a virtual terminal or a terminal emulator window. sudo dpkg-reconfigure console-setupsudo dpkg-reconfigure console-setup Now choose UTF-8 from this list. On this … Read more

FreeBSD. A very useful UNIX distribution that makes using your computer a lot of fun.

I have just setup FreeBSD with a high resolution framebuffer console easily. I just typed vidcontrol -i mode to list all available framebuffer video modes and then I set the appropriate mode for my laptop screen. I then added this line to the /etc/rc.conf file: allscreens_flags=”MODE_332″. This sets a 1366*768 resolution for the framebuffer console. … Read more

Ubuntu switching to a rolling release distribution and copying the contents of a terminal to a file.

The Ubuntu Linux distribution is planning to become a rolling release distribution; this would make it simpler to upgrade as the user incrementally upgrades to the next version instead of having to constantly install new versions of Ubuntu as they are released. You can edit the /etc/apt/sources.lst in Ubuntu and change all instances of the … Read more

Using the text console in Linux Mint 13. How to use Linux the proper command-line way.

Using the text console in Linux Mint is very easy. Access it by pressing Ctrl-Alt-F1. Get back to Xorg by pressing Alt-F9. Some Linux distributions use the virtual terminal tty7 as the one reserved for Xorg, but this can vary. You may open many virtual consoles by pressing Alt-2, Alt-3, or pressing Alt and using … Read more

How to take screenshots of the Linux framebuffer console in Ubuntu.

How to capture your Virtual Terminal to a png file The fbgrab application is used to screen capture the Linux frame-buffer console. Install this utility with the sudo apt-get install fbgrab command and then you may use this command to take a screen-shot of the frame-buffer console. Download the source code and then unpack it. … Read more

Using the .inputrc file to control keybindings in xterm.

Using the .inputrc file to control keybindings in xterm. If you wish to control the key bindings for Backspace, Delete, Home & the End keys in Xterm then read on. The ~/.inputrc file in your home directory controls this behavior, using the defines in this file you may control the key bindings and make using … Read more

Installing a nice console font in Ubuntu.

To install another cool console font in Ubuntu, install this package: fonts-ubuntu-font-family-console. These fonts are quite blocky, but they are something different if you wish to try another cool font for your Linux console. Type this command to install these very lovely fonts. sudo apt-get install fonts-ubuntu-font-family-consolesudo apt-get install fonts-ubuntu-font-family-console These are the fonts you … Read more

Setting a larger console font in Debian Squeeze.

This is very easy to do. Simply open a terminal and type: sudo apt-get install kbd-compat console-terminussudo apt-get install kbd-compat console-terminus This will install the setfont utility and a nice terminus console font. To set the desired font, type this command. The fonts will be in /usr/share/consolefonts. setfont Uni2-TerminusBold24x12.psf.gzsetfont Uni2-TerminusBold24x12.psf.gz If you want the changes … Read more