sudo apt-get install libnotify-bin
notify-send 'title' 'body message'
notify-send --help
Beep command from bash script
You can use a beep command in your scripts, install and it plays from the computer's speaker.
sudo apt-get install beep
Linux find command for a list of files or folders
Goal: Generate a simple text file with a list of files in it
find "/path/to/search" -type f | sort > list.txt
The -type f only returns files.
find /home/mruckman -maxdepth 1 -type d
The -type d only returns directories
mComix or feh Manga Command Line Viewer
Comix is a manga type viewer that works a bit like irfanview. Originally, I started using feh, which works from the command line but Comix seemed to meet my needs.
For Ubuntu 20.04 - MComix is a clone of Comix
Ubuntu has a command line image viewer called feh. Use apt-get to install it.
It has some basic commands, use the arrow keys to cycle through pictures, the v key to toggle to full screen.
[Shift]+[<] or [>] to rotate a picture
[Esc] or [Q] to quite
nslookup to resolve ip to name
Use the following to convert an ip address to a domain name:
nslookup ipaddress
Find duplicates in text file
Use the Unix command, to print duplicate lines
uniq -d filename.txt
sort your input file and you can use the following command to count the duplicates
uniq -c sortedfile.txt
Use wget with -c parameter to download larger files
Using the -c parameter allows you to resume:
wget -c http://www.sharepointpodshow.com/shows/sharepointpodshow_episode_10.mp3
Windows SteadyState (Kiosk Style Security)
Use this option to prevent any updates against a desktop.
Refer: Windows SteadyState
Handbrake Command Line (HandBrakeCLI.exe)
It's easiest to prepare video for the IPod Nano just by using the Handbrake software in command line mode. The GUI interface requires Net 2.0 and it seems a bit buggy in a virtual pc.
The following seems to have smaller video size:
HandBrakeCLI.exe -i DVD\MYVIDEO\VIDEO_TS -o myvideo.mp4 --preset="iPhone & iPod Touch"
Other option:
HandBrakeCLI.exe -i DVD\MYVIDEO\VIDEO_TS -o myvideo.mp4 --preset="iPod"
Encrypted DVD's Finding Title
The following command will show all of the menus, find the right title, and then use that with the -t switch to set it, default is always 1.
handbrake -i /dev/dvd -t 0
Files Differences in Text Files (diff)
Simple command line utility with decent readable output:
diff -u file1.txt file2.txt
