Posted: 30 May 2024. At: 11:06 AM. This was 1 month ago. Post ID: 19659
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

Miscellaneous Linux tips for the Linux desktop.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.