To list only the usernames in the /etc/password file use this command. [email protected]:~$ cut -d: -f1 [email protected]:~$ cut -d: -f1 /etc/passwd This will print a listing of all usernames. This also works on the /etc/shadow file when used as root. [email protected]:~$ su -c ‘cut -d: -f1 /etc/shadow’ Password:[email protected]:~$ su -c ‘cut -d: -f1 /etc/shadow’ Password:

I tried to list the partitions on a Windows machine using an Ubuntu Live CD and I got this error when trying to use fdisk to list the partitions. [email protected]:~$ sudo fdisk -l /dev/sda   WARNING: GPT (GUID Partition Table) detected on ‘/dev/sda’! The util fdisk doesn’t support GPT. Use GNU Parted.     Disk …

To list all non-free Linux packages that are installed on your Linux Mint system, use this one-liner. This prints out a list of all non-free packages that are installed on a system. [email protected] ~ $ dpkg-query -W -f ‘${Section}/${Package}\n’ | grep -E ‘^(contrib|multiverse|non-free|partner|restricted)/’ | sort contrib/kernel/virtualbox-guest-dkms contrib/misc/virtualbox-guest-utils [email protected] ~ $ dpkg-query -W -f ‘${Section}/${Package}\n’ | …

This Cisco command will list all passwords on a switch. mrrobot#sh ru | inc password service password-encryption password 7 00141215174C04140B70 password 7 00141215174C04140B70mrrobot#sh ru | inc password service password-encryption password 7 00141215174C04140B70 password 7 00141215174C04140B70 The inc command looks for any text that matches the argument. Like this: mrrobot#sh ru | inc line line con …

This command will print the make and model of your motherboard. [email protected]:~$ sudo dmidecode -t baseboard [sudo] password for jason: # dmidecode 2.12 SMBIOS 2.4 present.   Handle 0x0002, DMI type 2, 8 bytes Base Board Information Manufacturer: Gigabyte Technology Co., Ltd. Product Name: H55-USB3 Version: x.x Serial Number:[email protected]:~$ sudo dmidecode -t baseboard [sudo] password …

The sudo lastb command will list all recently logged in users on your Linux system. This is a useful tool on a server. [email protected]:~$ sudo lastb jason :0 :0 Thu Jan 8 12:41 – 12:41 (00:00) jason :0 :0 Mon Jan 5 11:42 – 11:42 (00:00) jason :0 :0 Mon Jan 5 11:42 – 11:42 …

This is an example where I am using the rsync command to copy files from one computer to another. [email protected] ~ $ rsync -avz -e "ssh -p 443" [email protected]:/home/homer/Desktop/ /home/homer/Videos The authenticity of host ‘[192.168.100.4]:443 ([192.168.100.4]:443)’ can’t be established. ECDSA key fingerprint is ############################################. Are you sure you want to continue connecting (yes/no)? yes Warning: …

The ls command for Linux may be used to list more than one thing at a time. These examples demonstrate this. [email protected] ~ $ ls -p /opt/ /bin/rm /bin/rm   /opt/: firefox/ [email protected] ~ $ ls -p /opt/ /bin/rm /bin/rm /opt/: firefox/ mint-flashplugin-11/ Here is a more verbose version of this command. With human readable …

The iptables -L or iptables –list commands will list all of the iptables rules that are set on your Linux machine. Below is abbreviated output of this command on my Fedora 20 system. [[email protected] homer]# iptables –list Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all — anywhere anywhere ctstate RELATED,ESTABLISHED ACCEPT all …

To find the largest file in a directory; use the du command and this will return the information you are after. Using the pipe symbol to send the text through to the head command will allow us to only return the one file we are interested in. [email protected]:~/Documents$ du -ack | sort -nr | head …

http://www.securitronlinux.com/bejiitaswrath/how-to-install-the-linux-mint-13-mate-desktop-in-ubuntu-12-10-quantal-quetzal/ How to install the Linux Mint 13 MATE desktop in Ubuntu 12.10. http://www.securitronlinux.com/bejiitaswrath/some-more-nice-themes-for-the-linux-mint-13-mate-desktop/ A list of lovely themes for the Linux Mint 13 MATE desktop. http://www.securitronlinux.com/bejiitaswrath/another-selection-of-very-nice-linux-mint-mate-themes/ Another selection of very nice MATE themes. http://www.securitronlinux.com/bejiitaswrath/mate-desktop-on-linux-mint-13-some-nice-gtk-and-icon-themes-to-make-it-look-very-nice/ A selection of very nice MATE icon themes and GTK styles to theme your desktop. http://www.securitronlinux.com/linux-mint-2/windows-7-lookalike-kde-themes-how-to-make-linux-look-like-vista-or-windows-7/ Some themes and icons for KDE 4.8.0 …

How to list the indexes in a MySQL database table. Easily done using the show command. mysql> show index from customer; +———-+————+——————-+————–+——————–+———–+————-+———-+——–+——+————+———+—————+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | +———-+————+——————-+————–+——————–+———–+————-+———-+——–+——+————+———+—————+ | customer | 0 | …