Useful bash codes ease your day to day linux works and make some fun out of your linux terminal.
- Lampp: It helps to run bitnami lampp server in your machine with a single command.
- Wishing : It wishes you whhen you open your terminal.
- File name generator : It helps to geneate a valid file name from any text by removeing unsupported characters.
- Downoad
file_name_generator.py
. - Provide execution permission to the
file_name_generator.py
bysudo chmod a+x file_name_generator.py
. - Move the file to
/usr/bin
and rename tofile_name_generator
bysudo mv file_name_generator.py /usr/bin/file_name_generator
. - Type
file_name_generator "dummy-text"
in the terminal. - Alias for
file_name_generator
can be created for easy usage. For that open.bashrc
usingvi .basrch
. - Add
alias fng="file_name_generator"
and save the file. - Read modified
.bashrc
bysource .bashrc
- To get the help, type
file_name_generator.py - h