How to use rsync to list filenames in a directory on a remote Linux server.

The rsync command with the –list-only parameter allows the user to list filenames on a remote machine. But by default, it looks like this. jason@Yog-Sothoth » ~ » $ rsync –list-only [email protected]:/home/jason/Documents/ [email protected]’s password: drwxr-xr-x 4,096 2018/05/09 09:49:49 . -rw-r–r– 867,863 2018/04/19 12:44:56 altis_insurgency_altis.pbo -rw-rw-r– 681,638 2018/05/04 09:03:16 pg768.txt -rwxrwxr-x…

Read More

Get information about running services with systemd on Ubuntu 17.10.

This is an easy way to get information about running services on your Ubuntu machine. I am after user services, so I am using systemctl to get this information. This is very easy. Get information about a certain service. jason@kaio:~$ systemctl status –user pulseaudio ● pulseaudio.service – Sound Service Loaded:…

Read More

Another way to get only interface names from a Linux machine.

How to return only interface names when listing all installed network interfaces in a Linux box. jason@jason-Lenovo-H50-55:~/Documents$ ip link | grep -Po "(?<=^\d: |^\d\d:)[^:]+(?=:)" lo eth0 wlan0jason@jason-Lenovo-H50-55:~/Documents$ ip link | grep -Po "(?<=^\d: |^\d\d:)[^:]+(?=:)" lo eth0 wlan0 This is very useful to get a listing of all networking interfaces for…

Read More

How to get WIFI information with the command line.

It is very easy to get information about wireless networks with the command line. This example uses iwlist to view the information we need. jason@jason-Lenovo-H50-55:~$ sudo iwlist wlan0 scan | grep ESSID ESSID:"OPTUS58FFG69" ESSID:"TelstraD22F23" ESSID:"OPTUS58FFG69" ESSID:"TelstraD22F23" ESSID:"OPTUS_B8E926"jason@jason-Lenovo-H50-55:~$ sudo iwlist wlan0 scan | grep ESSID ESSID:"OPTUS58FFG69" ESSID:"TelstraD22F23" ESSID:"OPTUS58FFG69" ESSID:"TelstraD22F23" ESSID:"OPTUS_B8E926" This…

Read More

4chan /g/ technology threads listing.

Listing of current 4chan /g/ threads I have developed a simple PHP script. This one will list all current threads on the 4chan /g/ technology board. I guess this could be interesting to someone who wants to know what current threads are up, but does not have the time to…

Read More

Use ls to only list files that start with an uppercase character.

The ls command may be used in conjunction with grep to list files that start with an uppercase letter or have an uppercase filename. ┌──(john㉿DESKTOP-PF01IEE)-[~/Documents] └─$ ls | grep "^[A-Z]" Boomsrc Hope is the good thing(The Shawshank Redemption 1994). [JAmspaaSNzE].f140.m4a Hope is the good thing(The Shawshank Redemption 1994). [JAmspaaSNzE].f160.mp4 Hope…

Read More

How to list every installed package with the apt command on Debian.

The apt package manager allows management of all installed packages and the installation of new software on a Linux system. It also allows the retrieval of information about installed packages. To list all installed packages, run this command. This does not require sudo or su. jason$ apt list –installedjason$ apt…

Read More

How to list all non-free Linux packages installed on Linux Mint 18.

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. jason@jason-virtual-machine ~ $ 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 contrib/x11/virtualbox-guest-x11jason@jason-virtual-machine ~ $…

Read More

How to list all passwords on a Cisco switch.

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…

Read More

Get information about your computer hardware with Linux.

Get information about installed hardware with these commands This command will print the make and model of your motherboard. jason@eyjafjallajkull:~$ 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….

Read More

How to use rsync to copy files from one computer to another.

This is an example where I am using the rsync command to copy files from one computer to another. homer@deusexmachina ~ $ 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…

Read More

How to add a custom menu to Fluxbox to list your favorite applications.

Adding a custom menu to Fluxbox is very easy, this is how. The default ~/.fluxbox/fluxbox-menu file looks like this, it reads the /etc/X11/fluxbox/fluxbox-menu file to create the root menu for Fluxbox. [begin] (fluxbox)   [include] (/etc/X11/fluxbox/fluxbox-menu) [end][begin] (fluxbox) [include] (/etc/X11/fluxbox/fluxbox-menu) [end] But if you add a simple submenu to it…

Read More