Code Monkey home page Code Monkey logo

bombshell's Introduction

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.

bombshell's People

Contributors

dimgrav avatar dtsolis avatar ragecryx avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

dtsolis

bombshell's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.