This simple script will spawn a jet to patrol an AO and attack any enemy vehicle or helicopter it sees. // Spawn a CAS jet to patrol the AO. _plane = createVehicle [“O_Plane_CAS_02_F”, getMarkerPos(“plane”), [], 0, “FLY”]; _pilotguy = [[26761.4,24593.4,0.000909805], EAST, [“O_Pilot_F”],[],[],[],[],[],232] call BIS_fnc_spawnGroup; ((units _pilotguy) select 0) moveInDriver _plane; _wpcas = _pilotguy addWaypoint [getMarkerPos(“mkr1”), …

Fetch information about a random Linux command. curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’ Here is an example. ┌─[[email protected]]─[~] └──╼ $curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’ # An easter egg built into python to give you the Zen of Python echo "import this" | python┌─[[email protected]]─[~] └──╼ $curl -sL commandlinefu.com/commands/random/plaintext | sed …

To list all the files installed by a certain Debian package, use this command. dpkg -L [PACKAGENAME]. For example. ubuntu ~ $ dpkg -L vim /. /usr /usr/bin /usr/bin/vim.basic /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/vim /usr/share/bug /usr/share/bug/vim /usr/share/bug/vim/presubj /usr/share/bug/vim/script /usr/share/doc /usr/share/doc/vimubuntu ~ $ dpkg -L vim /. /usr /usr/bin /usr/bin/vim.basic /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/vim /usr/share/bug /usr/share/bug/vim /usr/share/bug/vim/presubj …

The bash shell has some very useful features when using the command line. This can make using the command line much faster. For example, if you forget to type sudo before a command, this can be fixed this way. jason$ fdisk -l /dev/sda fdisk: cannot open /dev/sda: Permission deniedjason$ fdisk -l /dev/sda fdisk: cannot open …

This command will capture a screenshot of the desktop and save it to the home directory. [email protected]:~$ import -window root "$HOME/$(date ‘+%y%m%d_%T’).png"[email protected]:~$ import -window root "$HOME/$(date ‘+%y%m%d_%T’).png" This is how to do this with the scrot utility. [email protected]:~$ scrot Desktop-%H:%M:[email protected]:~$ scrot Desktop-%H:%M:%S-%d-%m.jpg Characters preceded by a ‘%’ are interpreted by strftime(2). See man strftime for …

To print a graphical notification from a shell script, insert this code. notify-send "Match Found!"notify-send "Match Found!" This will pop up a notification on your desktop, this will alert you to the fact that your shell script has done something. Make your computer talk. This will speak whatever you type as text. [email protected]:~$ espeak "I …

Search and replace on the bash shell is very useful for various one-liner shell commands. The below example shows how to replace a # character with a * character. [email protected]:/mnt/c/Users/johnc/Documents$ cat ip.c | sed ‘s/#/*/gi;’ *include <stdio.h>   int main() { printf(".");   return 0; }[email protected]:/mnt/c/Users/johnc/Documents$ cat ip.c | sed ‘s/#/*/gi;’ *include <stdio.h> int main() …

The grep command on Linux is very good for filtering text to find certain strings. This is mostly used for filtering the output of a command to narrow down what the user is looking for. Find all instances of a word in a text file. [email protected]:/usr/share/X11$ grep "dark" rgb.txt 47 79 79 dark slate gray …

How to upgrade to a newer Linux Mint release. https://community.linuxmint.com/tutorial/view/2. How to update and upgrade your packages. Type this in a terminal window. sudo apt-get update && sudo apt-get upgradesudo apt-get update && sudo apt-get upgrade This command will update the package repositories and download and install package updates over the Internet. Find a nice …

To open the Firefox developer tools, press Ctrl-Shift-K. This is good if you have Firebug installed, as F12 will open it instead. To take a full-page screenshot of a web site, press Shift-F2 and then type this command and hit press ENTER. screenshot –fullpagescreenshot –fullpage This will be saved in the ~/Downloads folder by default. …

To open a new virtual terminal to enter commands, use the Ctrl-Alt-F2 key combination and enter your username and password. This is a virtual terminal where you can control your system with a distraction free full-screen terminal. There are key combinations to switch between virtual terminals, read more here: http://www.tldp.org/LDP/GNU-Linux-Tools-Summary/html/virtual-terminals.html. To get a version of …

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 …