Another way to get IP address information from the Netstat command.

Get IP address information using Netstat on Linux How to get IP address information using netcat and some other useful tips. user1@cloudshell:~$ netstat | awk ‘/tcp6/ { print $5 }’ 74.125.41.158:36146 173.194.93.92:48039user1@cloudshell:~$ netstat | awk ‘/tcp6/ { print $5 }’ 74.125.41.158:36146 173.194.93.92:48039 user1@cloudshell:~$ netstat | awk ‘/tcp6/ { print $5"…

Read More

How to install Windows Services for Linux on Windows 11.

Install Windows Services for Linux on Windows 11 To install the Windows Services for Linux on Windows 11, run the wsl –install command, this requires elevated privileges so run the Windows Terminal as Administrator to accomplish this. Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.   Install the latest…

Read More

New Tabby terminal coded as an Electron app.

The new Tabby terminal is coded as an Electron app. This is a new terminal emulator for Linux. This works very well on Arch Linux. This was supplied as a *.pacman file. To query the file before installing, use this command. ┌──[[email protected]]─[~/Downloads] └──╼ ╼ $ pacman -Qpi tabby-1.0.167-linux.pacman Name :…

Read More

Obscure Linux bash shell tricks and tips.

Some useful Bash shell tricks There are a lot of obscure Bash shell tricks for the Linux shell that is useful for showing off shell tricks and making your shell usage easier. For a first example, run this command. ubuntu ~ $ ls -hulaubuntu ~ $ ls -hula Then run…

Read More

Another way to get useful hardware information with dmidecode on Arch Linux.

Getting useful hardware information is very important on a Linux system. With Arch Linux, this is quite simple. Install dmidecode. [root@darkstar Downloads]# pacman -Sy dmidecode[root@darkstar Downloads]# pacman -Sy dmidecode This will query sysfs to return hardware information. This command will print the model name of the computer`s motherboard. [root@darkstar Downloads]#…

Read More

Another example of a command that you should never run on Linux.

An obfuscated command like this is an example of one that you should never run. ┌──[[email protected]]─[~] └──╼ ╼ $ echo "ZWNobyBIYWhhaGFoYWhhaGFoYWhhaGFoYWhhaGFoYWhhaGFoYWhhaGFoYWhhaGFodG91Y2ggLS1mdWNreW91ISA+PiAtZnVja3UhCg==" | base64 -d | sh -s┌──[[email protected]]─[~] └──╼ ╼ $ echo "ZWNobyBIYWhhaGFoYWhhaGFoYWhhaGFoYWhhaGFoYWhhaGFoYWhhaGFoYWhhaGFodG91Y2ggLS1mdWNreW91ISA+PiAtZnVja3UhCg==" | base64 -d | sh -s This is the actual command it will run, this creates a file…

Read More

Deleting a file named -f and other Linux tricks.

How to delete a file with a strange filename This can be an annoying trick to play on someone. Create a file named -f with this command: >-f and then ask them to delete it with the command line only. This can be frustrating exercise; you try to use rm…

Read More

A very good mencoder command-line to rip a DVD in very good quality.

This long one-liner will rip a DVD in very good quality to an AVI file. ┌──[[email protected]]─[~] └──╼ ╼ $ mencoder -passlogfile 2passlog.log -oac mp3lame -lameopts vbr=3 -ovc xvid -xvidencopts bitrate=1400:me_quality=6:chroma_me=1:nointerlacing:max_bframes=1:noqpel:hq_ac:trellis:quant_type=mpeg:chroma_opt:bvhq=1:vhq=4:autoaspect:pass=1:turbo -aid 128 -ofps 23.976 dvd:// -o evil_dead_movie.avi┌──[[email protected]]─[~] └──╼ ╼ $ mencoder -passlogfile 2passlog.log -oac mp3lame -lameopts vbr=3 -ovc xvid -xvidencopts…

Read More