Finding all executables in a given path is easy if you use the lsx utility. Firstly install the required packages. [email protected]:~$ sudo apt-get install suckless-tools [sudo] password for jason: Reading package lists… Done Building dependency tree Reading state information… Done Suggested packages: dwm stterm surf The following NEW packages will be installed: suckless-tools 0 to …

The wall command is a perfect way to send a message to all logged on users on a Linux machine. This is used when you shutdown to alert all users that the system will be shutting down. The example below shows me sending the output of the ps command to all users. [email protected]:~$ sudo ps …

The Linux command line is very useful for finding files, the find command is the best way to locate files on your filesystem. This is a simple example. [email protected]:~$ sudo find /proc -name "meminfo" [email protected]:~$ sudo find /proc -name "meminfo" /proc/meminfo Use the -maxdepth parameter to only search a certain number of levels deep into …

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 [email protected]:~$ free total used free shared buffers …

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