The chq
command is a custom script that allows you to change permissions on a file and execute it. This guide explains how to set up and use the chq
command. (its simply chmod +x "filename" && ./filename)
- You should have a bash (sh) shell available on your system.
-
Clone or download the repository to your local machine.
-
Navigate to the directory containing the
chq
script using the terminal:cd /path/to/chq/script
-
Make the script executable:
chmod +x chq
-
Create a symbolic link to make the
chq
command available globally (optional):sudo cp mychq /usr/local/bin/
Now, you can use the chq
command globally in your terminal.
To use the chq
command, follow these steps:
-
Open a terminal.
-
Type
chq
followed by the name of the file you want to change permissions on and execute. For example:chq
-
The script will prompt you to enter the file name. Type the name of the file you want to modify, and press Enter.
-
The script will change the file permissions to make it executable and then execute the file.
If you encounter any issues, double-check the file path and permissions. Ensure that you have the necessary privileges to execute files in the chosen directory.
This project is licensed under the MIT License.