Category: Caja File Manager

Added: 12th of November 2021

Viewed: 62 times

Caja file manager scripts. Creating and executing bash scripts from the right click context menu

Looking through the hidden folders in my home directory on Caja file manager, I decided to look in the following folder .config/caja and noticed a scripts folder. This immediately pointed to some sort of launcher for executing bash scripts

Every so often I need to look back at some of the commands I have entered in the terminal, so I created a bash script below that opens the .bash_history file in Pluma text editor. I then saved the file as bash_history in the scripts folder.

#!/bin/bash
pluma /home/$USER/.bash_history





After making the file executable chmod +x, I returned to the Desktop and looked through the menus to see if there was somewhere I could execute the script.

Right clicking the mouse on the desktop to show the context menu, revealed a new entry named scripts, from here I was able to launch the bash_history script.



I can see this coming in handy for all sorts of operations, for example creating a bash script to quickly back up my .thunderbird folder or updating my system and so on.

Other Tips & Tutorials

Caja File Manager

Caja file manager scripts. Creating and executing bash scripts from the right click context menu

Posted: 12th of November 2021

Views: 62

Caja File Manager

Copy and paste the path to a folder using the location bar in Caja file manager

Posted: 28th of February 2021

Views: 398