How To Create Your Own Linux Ubuntu Terminal Commands!

preview_player
Показать описание
The following is a snippet from the free course "Learn The Linux Command Line". Get full access to it here:

In this video, we go over the steps nessesary to create your own custom linux terminal commands in the command line.
The process for making custom linux terminal commands is as follows:
1. Create a bash file for the command you want
2. Move it to the /usr/bin directory

This tutorial is comprehensive and goes through everything in detail so that new linux users can get a better understanding of linux and the linux terminal.

Here is the course description for this video:
The command line is an incredibly useful tool for developers and regular computer users. If you want to get into Ruby on Rails, Django, Unix customization and so much more, learning the command line will help you immensely. Many technologies and frameworks rely on command line inputs. This course will get you up and be running with the command line quickly.

In this course Learn The Command Line: Everything You Need To Know you will quickly learn and become familiar with many essential UNIX commands. We will go over everything from opening up the command line to making our very own commands for the command line. This command line course is mainly for Linux users but Mac users are welcome to join (just realize not everything may work).

For beginners, the command line may seem overly complex and it may be hard to sit down and learn it. This course will teach you how to use the command line and skip the boring, unnecessary stuff that you may never use. However, this course gives an excellent command line foundation, so if you want to learn more, you can do so easily on your own.

I used to be very intimidated by the command line. I designed this course for people like me who may be struggling to figure out all of the commands. This course would've been perfect for me 2 years ago.

Follow Me:

Intro Music: Anikdote - Which Direction- [NCS Release]
Get 60 Free Days of Unlimited Access to Scribd!
Рекомендации по теме
Комментарии
Автор

What you created is essentially a shell script (those files usually have ".sh" at the end to distinguish between regular commands, which are really just ELF executables - programs - and text based scripts). If you want to create a new command, you could create a shell script like that (by default it will assume the default or running shell, which in majority of Linux distros is going to be Bash, you can change that or specify with something called "shebang", which is essentially a special comment at the top that starts with #! and immediately after - no space in between - you type in the path to the shell you want to use, and even supply arguments), and if you don't want to use the ".sh" part, you eighter create the file without it in the name, or you could create an alias that would map a command to a script file. Easily done.

CZghost
Автор

you've explained it well, thanks

shayy
Автор

you've explained well, keep it up. Thankyou

kalpaonline
Автор

Hey would you please name you icon theme😅
I do just love that icons🤩

fasnat.k
Автор

Thanks, buddy that's what I was looking for...

adityavaste
Автор

I'm glad I found this video, I definitely prefer it over creating an alias in my .bashrc

anthonymeredith
Автор

easier way; sudo apt install gedit: enter password and download: type: gedit .bash_aliases: when file open type: alias YOURWORD='COMMAND' : go back to terminal and type source .bash_aliases : if you don't write this after saving then it won't work ps since it is .bash_aliases the . means that its hidden witch is for if anyone finds it in your file manager they can't make it to whatever they want, for example, they can make echo do rm -rf


PS if your do rm - rf in terminal it will mess up your computer so you can't blame me for mentioning it
By taking this advice and putting it in my terminal (name of person) will not hold YZ inventions accountable if this doesn't work

yzinventions
Автор

Suggestions! How to Make command line/syntax like When I type help it show the info and When I type firewall it show me option to Enable or disable.

ItzShinePlayz
Автор

There's an even easier way.

Open the file ".bashrc" (located in your home directory, it's a hidden folder)

Type:
alias helloworld="echo \"hello world\""
Save the document

Type in the terminal:
source .bashrc (this updates the changes on your system)

now you can use helloworld as a command.

alexjoslin
Автор

nicely done
keep posting such videos

anuragsingh
Автор

You seem to be using a "Blue Snowball" microphone. How do you make such high quality and loud sound? Are you using an amplifier? Thank you for the video. It is really fantastic!

johannweiss
Автор

i been trying to compile a schript (sh) to make an executable binary for linux but it didnt work any way to make this work?> theres no error?

JNET_Reloaded
Автор

Write a utility utility called junk that satisfies satisfies the following following
specification:
• Utility: junk [-l] [-p] { fileName }* p] { fileName }*
– junk is a replacement for the rm utility.
– R h at er than removing files, it moves them into the
subdirectory ".junk" in your home directory.
– If " junk" ".junk" doesn't doesn't exist, it is automatically automatically created created.
– The ‐l option lists the current contents of the ".junk"
directory, and
– the ‐p option purges ".junk".

if u could please help me solve this

fantastic
Автор

None of these commands are working for me.

sheepleslayer