Skip to content

FelipeSantos-cco/commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Commands

Creating commands for the linux terminal

How to create a command?

1° Create a name that doesn't interfere with existing commands;

2° Create a file with that name and no extension in a folder that is in the path, for example: /usr/local/bin.

sudo touch /usr/local/bin/command-name

3° Open the file with a text editor and add the command you want to run;

#!/bin/bash
echo "My command HEEEEE !!!!!!"

4° Save the file;

5° Give execute permission to the file:

sudo chmod +x /usr/local/bin/command-name

6° Now you can run the command from anywhere in the terminal 😄


List of Commands

name description it's at
pull-all Run git pull command on all repositories. pull-all

About

Creating commands for the linux terminal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages