Skip to content

dimgrav/Bombshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bombshell

Collection of Shell scripts for BASH

This project is intended to become a solid library of useful Shell scripts for everyday computing. A small, yet powerful toolbox, which will help automate and quicken repetitive tasks that Linux users perform daily.

Script list

  1. dispcont: a simple interactive script to display grouped totals of directory contents

$ ./dispcont.sh [option]: display visible directory contents

Available options

Option Description
--hidden Includes hidden files
--recursive Searches also in sub-directories
  1. easycp: easily copy entire folder contents recursively and interactively

Running scripts from any location via terminal

In order to run a Shell script from anywhere on your system, you have to add the script's directory path to the $PATH environment variable of your OS.

To do so:

  1. Create a directory to store custom shell scripts, for example:
$ mkdir ~/scripts
  1. Open ~/.profile with a text editor, e.g. NANO:
$ nano ~/.profile
  1. Add the following lines at the end of .profile:
PATH=~/scripts:$PATH
export PATH
  1. Restart your user session (reboot or log out and in again)

Make sure you have set the script as executable for your user account!

$ chmod u+x <script>

To verify that you have x-ecute permissions on the script, run $ ls -l <script>, the permissions format should look like the bold characters in the line below:

-rwxrw-r-- 1 username users 2048 Jul 6 12:56 script.sh

Understanding permissions is vital in scripting, make sure you don't give x permission to the wrong user or usergroup on your system!

It is highly recommended that you use these tools for managing tasks that do not require sudo privileges.

About

Collection of Shell scripts for BASH

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages