Category: CLI

PWGen

pwgen – PWGen is a password generator capable of creating large amounts of cryptographically secure random passwords or passphrases (from word lists). It uses a random pool to gather entropy from user inputs and system parameters as well as text encryption. The default should be fine for most users. For example, to get a 12-character…


ascii.io

From ascii.io ascii.io lets you record your terminal sessions and share them with other geeks simply by running asciiio command in your term. It is fully open-source platform with aim of being a “go to” place for terminal users wanting to share their hackery. Web based player is an implementation of VT100/VT102 ANSI terminal, supporting…


Fish

From Fishshell.com Fish: the friendly interactive shell – fish is a user friendly command line shell for UNIX-like operating systems such as Linux. fish is included in Ubuntu universe. It can be installed using apt-get install fish fish is included in Fedora. Users of Fedora Core 4 and later can use the command yum install…


File Password Protection

How do I password protect / encrypt a file within Linux using OpenSSL ? The file we will encrypt will be the file secretfile.txt.As you can see it is just a plain text file. Encrypt File Use the openssl comand to encrypt your file and then test the new file is fully encrypted. $ openssl…


sl

From practicalthought.com sl takes the most common use of Unix ls, to display the files in a directory compactly in multiple columns, and makes it substantially more useful. sl groups files by purpose so you can mentally organize many files quickly; for instance, it collects HTML and PHP files together, as opposed to leaving them…


Villustrator

From bilalquadri.com Here is a nice little addition to vi or vim. You can create a custom theme for vi/vim and download it to use locally. Nice! From their FAQ: Where do I put the colorscheme I just downloaded? The colorscheme should be put in “~/.vim/colors”. If those directories don’t already exist, you will need…


Reset visual and editor to use Vim

Hi, I ran across a small issue where the client wanted to use vim as the default editor for crontab as opposed to pico. I was able to modify this by using the following commands; EDITOR=vim; export EDITOR VISUAL=vim; export VISUAL=vim and done… Now, when editing crontab, it uses vim. Simple.


Monitor file changes live

Here’s a quick one for ya… watch -d -n 2 “df; ls -FlAt;” This brings up a top like interface which every 2 seconds shows files which are being written to. Enjoy 🙂


Copy one file to multiple directories

Had a client ask to copy a file to multiple public_html directories, came across this little bash script which worked beautifully: touch copy.sh vim copy.sh add this to file, modifying the name of the file to be copied (in this case, test.php) #/bin/bash for file in $(find /home/* -name public_html -type d) do cp test.php…


Complete Linux CLI list

http://www.oreillynet.com/linux/cmd/ Other helpful guides: http://www.linuxguide.it/linux_commands_line_en.htm http://www.pixelbeat.org/cmdline.html