The factor
command for Linux will find the prime factors of any number that is entered as STDIN. Look below for an example.
4.4 Thu Aug 30 jason@Yog-Sothoth 0: $ factor 2018 2018: 2 1009
Use this command to create an old-fashioned Dot-Matrix printer banner. This is very useful if there is a Dot-Matrix printer laying around your place.
4.4 Thu Aug 30 jason@Yog-Sothoth 0: $ printerbanner Message: Ubuntu
Use the Linux type
command to print out what type of command a particular Linux command is.
4.4 Thu Aug 30 jason@Yog-Sothoth 0: $ type ls ls is /bin/ls
4.4 Thu Aug 30 jason@Yog-Sothoth 0: $ type windows95 windows95 is /usr/bin/windows95
The Imagemagick convert
command will come in handy when you are needing to quickly convert an image from one format to another.
19:03:44 flynn@flynn-grid-runner [~]$ convert shot0001.png shot0001.jpg |
This implementation of the mencoder command will convert a video recorded with recordmydesktop or VLC to a format suitable for Youtube.
19:04:03 flynn@flynn-grid-runner [~]$ mencoder vlc-record-2012-08-29-22h51m15s-v4l2____dev_video0-.avi -ovc xvid -xvidencopts bitrate=1900:trellis -oac mp3lame -o out.avi |
More awesome shell tricks in this post.
Using brace expansion to create folders on the Linux filesystem.
Some miscellaneous Linux tips. Some useful commands.
http://www.securitronlinux.com/useful-linux-commands-tips/
More miscellaneous Linux tips for mastering your Linux system.
Pingback: More useful bash shell tricks. How to use keyboard shortcuts to navigate the shell easily.