Skip to content

A lightweight terminal-based file navigator and system utility tool written in Bash. Examples of many things in one script

Notifications You must be signed in to change notification settings

Peter-L-SVK/Bash-example-Navigator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash Navigator

A lightweight terminal-based file navigator and system utility tool written in Bash. Created as a learning project back in 2018.

Here is a screenshot of Navigator in action:

Navigator Screenshot

Features

  • File Operations: Copy, paste, delete files/directories
  • Directory Navigation: Move up/down directory tree
  • System Monitoring:
    • Check CPU usage (cpustat)
    • View disk temperatures (hddtmp)
    • DNS status monitoring (dnsup)
  • Utilities:
    • Permission management (chmod)
    • Directory content/size analysis (content, usage)
    • User session info (whois)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/bash-navigator.git
    cd bash-navigator
  2. Make scripts executable:

    chmod +x navigator.sh functions.sh
  1. (Optional) Add to your .bashrc for global access:
function navigator()
{
	default_position=$(pwd)
	path_to_script=<PATH_TO_SCRIPT> #f.e. /home/currrent_user/
	cd "$path_to_script"
	$path_to_script/navigator.sh "$default_position"
	echo "Navigator ended."
	cd "$default_position"
	default_position=""
}

Usage

Run the navigator:

./navigator.sh [starting_directory]

or:

navigator #if you added function to .bashrc in previous step

Key Commands

Command Description
.. Move up one directory
cd Change directory
copy Select file to copy
help Show Helpfile
paste Paste copied file
rm Delete file
hddtmp Show disk temperatures
q Quit

Press Ctrl+C to interrupt any operation.

Requirements

  • Bash 4.0+

  • Core utilities:

    • dulsmkdirrm

    • hddtemp (for disk temps)

    • dig (for DNS checks)

    • mpstat (for CPU stats)


Note: This tool is designed for Unix-like systems (Linux/macOS).
Some features may require root permissions (e.g., hddtemp).

About

A lightweight terminal-based file navigator and system utility tool written in Bash. Examples of many things in one script

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages