Changes

How Do I: A Linux Q&A

2,512 bytes added, 16 February
The following lines were added (+) and removed (-):
== [FORCE EJECT DVD / CDROM DISC] ==-------------------------------------------------------------------------------Determine where it is mounted using the 'df' command then, not against the dev but the mountpoint issue the following: sudo fuser -km /media/label == [RESUME A STOPPED JOB IN LINUX] ==-------------------------------------------------------------------------------If you see [1]+  Stopped at the console you've stopped a process and placed it in the background.  You may have accidentally pressed Ctrl+Z or you intentionally stopped the process job and now you wish to resume it.type: fgYou can add the job number behind the fg command, if there is only one job it will be job 1 and default to that job.  Learn more about [[Job Management in Linux]].== [HOWTO COMPRESS with tar zip tar.gz tgz] ==Back up a directory of files and preserve the path.  tar -zcvf sourcefiles archive.tar.gz* -z compress using zip* -c create* -v verbose* -f archive file to createYou can add -p to preserve absolute names, so that the path will begin with the root / and all the way to the directory location.  This is really only useful for doing backups/== [MEASURE THE STRENGTH OF WIFI CONNECTION] ==To measure the strength of the wireless connection from CLI watch -n1 iwconfigShows link quality as well as signal level.== [MONITOR USB PORTS FOR CONNECTING OR DISCONNECTING] ==udevadm real-time monitoring of usb ports: To see if a device is plugged into USB or unplugged, real time monitoring showing when a USB device is connected or disconnected. udevadm monitor --subsystem-match=usbDoes not require sudoAs soon as you connect any USB device, be it a USB flash drive or USB keyboard, mouse, etc details will be displayed.  Also when disconnected.== [CLI SHELL AUTO COMPLETE COMMAND LINE PATH NO LONGER CYCLES] ==This is actually a readline feature called menu-complete . You can bind it to tab (replacing the default complete) by running: bind TAB:menu-completeYou probably want to add that to your ~/.bashrc. Alternatively, you could configure it for all readline completions (not just bash) in ~/.inputrc.You may also find bind -p (show current bindings, note that shows tab as "\C-i") and bind -l (list all functions that can be bound) useful, as well as the bash manual's line editing section and readline's documentation.  source: [https://unix.stackexchange.com/questions/24419/terminal-autocomplete-cycle-through-suggestions derobert on stackexchange]
Bureaucrat, administrator
16,336
edits