The emerge -atv emacs command will tell you what packages will be merged when installing a copy of Emacs on your Gentoo GNU/Linux system. [email protected] ~ $ sudo emerge -atv emacs   * IMPORTANT: 8 news items need reading for repository ‘gentoo’. * Use eselect news to read news items.     These are the …

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 …

I recently created a new user with the adduser command. [email protected]:~/Documents$ sudo adduser jimkirk Adding user `jimkirk’ … Adding new group `jimkirk’ (1002) … Adding new user `jimkirk’ (1002) with group `jimkirk’ … Creating home directory `/home/jimkirk’ … Copying files from `/etc/skel’ … Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully …

The free command in Linux is used to show the amount of free memory in Linux. The example below shows the default usage of this command. [email protected]:~$ free total used free shared buffers cached Mem: 602736 294680 308056 16928 17632 146320 -/+ buffers/cache: 130728 472008 Swap: 0 0 0 The free -m command will show …

The ss command for Linux allows a user to list all listening ports on a Linux system. This command lists all listening TCP ports. [email protected] ~ $ ss -l -t State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 1 127.0.0.1:4101 *:* LISTEN 0 50 *:netbios-ssn *:* LISTEN 0 128 *:sunrpc *:* LISTEN 0 128 …

The mtr command for Linux is another good way to trace network hops. Use it like this: mtr –report [HOST] [email protected] ~ $ mtr –report yahoo.com Start: Mon Jul 28 07:42:16 2014 HOST: deusexmachina Loss% Snt Last Avg Best Wrst StDev 1.|– 192.168.100.1 0.0% 10 0.3 0.3 0.3 0.4 0.0 2.|– 185.3.148.122.network.m2c 0.0% 10 29.0 …

Linux has quite a few commands for finding out information about your network adapters. Below is an example. Using the ethtool command as root. [email protected] ~ $ sudo ethtool eth2 [sudo] password for homer: Settings for eth2: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supported pause frame use: No …

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 …

Use this command to capture packets with the tcpdump command. This will output to STDOUT, but you may use redirection to divert it to a text file. [[email protected] homer]# tcpdump -i wlp2s0[[email protected] homer]# tcpdump -i wlp2s0 This is the output that you get when you are capturing packets. This is on my home network, so …

If you are interested in how the Linux filesystem works, then this is a posting you really need to read: http://geekblog.oneandoneis2.org/index.php/2006/08/17/why_doesn_t_linux_need_defragmenting. This is a posting explaining how the Linux filesystem stores file and why it does not need to defragment the filesystem as it stores files more efficiently. I have never wanted to defragment a …

The Linux command line offers useful tools that enable you to find files easily. The find command is one useful example. Here I am using the find command to look for all *.png files in a folder. [email protected] ~/Documents $ find /usr/share/backgrounds -name “*.png” /usr/share/backgrounds/linuxmint-petra/linux_mint_16.png /usr/share/backgrounds/linuxmint-petra/petra.png /usr/share/backgrounds/warty-final-ubuntu.png And using wildcards to find all files with …

The sed command is very useful for searching and replacing text in a file. This is how to search for and replace a text string in a file. [email protected] ~ $ sed -i ‘s/<main>/<mein>/gi;’ my.c This is how to search and replace text in a file and leave a backup copy with a tilde character …

How to use a simple Linux utility to see what is hogging your network bandwidth. The nethogs utility allows you to see what is hogging your bandwidth. Type sudo apt-get install nethogs to install this. Then run it like this: [email protected]:~/Documents/Doom2 ☠ $ sudo nethogs eth1 A screen like the one shown below will appear. …