There are a host of useful Linux tips and tricks for using the Linux desktop, some obscure and some well known. Here are a few.
Run a graphical app from the terminal, leave it running, but close the terminal after executing the command.
(jcartwright@2403-4800-25af-b00--2) 192.168.1.5 Documents $ xclock &exit
This runs Xclock, but closes the terminal after running Xclock.
Leave a command running on a remote SSH server when you disconnect.
nohup sudo nmap -A -T2 -P0 hackthissite.com -oN nmap-log.log &exit |
Get information about a window on your desktop using this simple utility.
(jcartwright@2403-4800-25af-b00--2) 192.168.1.5 ~ $ xwininfo
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x240000c "xclock"
Absolute upper-left X: 1094
Absolute upper-left Y: 6
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 164
Height: 164
Depth: 24
Visual: 0x21
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +1094+6 -2182+6 -2182-1270 +1094-1270
-geometry 164x164+1089+1
Just run this command and then click the window to get detailed information.
How to open mpv in a certain place on your monitor in Linux.
How to manipulate Xorg windows with a terminal command.