quick back story that hangman program
from my first program I ever coded video
that was done in my cs3 through three
course which was problem-solving in
programming one and to smash into a
single course and alongside that course
I had to take CS 252 which was ensured
of Unix for programmers today we're
gonna take a look not as deep as we
actually went in that class but we're
gonna take a look at the list of
commands some of the basic ones that we
went over in that class and I kind of
want to see what I actually took over
into my actual career and which ones I
haven't even seen since that class so
there are a few levels to this there are
some commands that I use just about
every single day there are other
commands that I'll use on occasion maybe
when I'm looking something up or when I
just really need to just like figure out
a particular problem and you know use
the terminal to fix that problem and
then there's the really bottom of the
bucket commands that I've personally
never used since that we're gonna go
through that kind of categorize some of
these commands based on what was taught
in that class and what I do as a
software engineer so let's get started
ah CES 252 I haven't seen this page in
like well besides yesterday when I'll
say it about making this video three
years four years give or take somewhere
around there sure this curriculum is
from you know 2018 but pretty sure all
the content of this is the same as when
I took it three or four years ago cuz
not much changes with the Unix I did
take a look at few of these try to find
like a command list and I did inside
some basic Unix commands and at all the
way at the bottom of this it's funny
about this is that you can take a look
at this URL and you can take a look at
all of this curriculum all you can't do
is go into like the assignments and some
of those specific things but you can
take a look at all of this curriculum
for free
a lot of the online courses from ODU the
curriculum is online for free just the
assignments and you know the teacher and
all that stuff isn't available to you so
fun little tip but basic Unix commands
all the way down commands a glossary now
this doesn't list all the commands from
what I remember but it lists a lot of
the basic ones and some of the difficult
ones but not any of the ones
really get into really deep detail
because you know you can have some
commands that are like three lines long
for the sake of this video for the sake
of my mind we're not going to look at
any of those so let's first look at file
and directory manipulation CD that
stands for change directory I use that
one the most out of anything because you
kind of need to use that in order to
change the directory to mode I use this
when a particular you know private keys
come into the equation where I need well
file protection as you can see right
here but other than that very rarely do
I use this it's generally kind of like a
one and done type of deal for whatever
sites or credentials you're working with
CP never do I use CP although I should
use CP I just kind of normally do it the
old-fashioned way I'll have two files
open a copy and paste whatever I need
but generally I don't need to copy an
entire file in its entirety I just kind
of need a little snippet from here there
what-have-you and that kind of lays out
our three categories that I discussed
earlier this is one I use all the time
this is one I use on occasion and this
is one that I never use find I never use
in all honesty whenever I have Linux I
just essentially open up the file
explorer I type in whatever I need to
find and then that's kind of how I find
I make sure I'm in the proper directory
so it could search down and it's branch
is but I never use find in the actual
terminal window maybe I will from now on
I kind of forgot it existed LS that's
one that you're gonna use all the time
that is one well that lists the files in
the directory so if you change to a
particular directory you need to figure
out what's inside that directory
LS it'll show all the directories all
the files what have you make der stands
for make a directory it'll create a new
directory in your current directory I do
use that one all the time especially if
I'm trying to work on something and just
make derp and then type in the directory
name and I'm good to go
and a fun little fact right here is that
this little squiggly line doesn't matter
what director you're in this squiggly
line means home so as you can see right
here if you do make dur tilde slash the
name of your directory then that'll
create a new directory inside your home
directory the more you know move her
renames files I never you I can't say
never I will use this when I am SSH into
a remote desktop
because a lot of times when I don't have
access to a particular remote desktop i
will use MV to move particular files and
a lot of times I'll use a make there and
stuff like that for but I haven't used
that since school in my actual job is
software engineer I haven't used it but
in school I'll need to SSH into my
remote desktop that is owned by ODU and
that's where this would really come in
handy so I didn't actually have to load
up the remote desktop I could just kind
of like SSH in and just kind of you know
navigate around in the terminal PWD nope
don't use that RM for remove file write
deletes list of files yeah never use
that
oh so this is removing a list of files
this is removing a directory I do use
that sometimes when I mess up the name
or don't feel like editing whatever
unmask says default permissions for
newly created files nope don't use that
oh I haven't used this in so long and in
all honesty I was actually looking for
this I forgot 100% what it was but I
wanted to compare two files and open up
mode the contents of each file that I
listed actually may not be this one what
I was trying to do was have a command
can't remember what the command was even
till this day and compare the text in
two files I remember doing that but I
couldn't find the proper command to do
that if you know that can you please
leave that in a comment below because I
couldn't find it oh and Emacs if you use
Emacs you are my sworn enemy I am NOT
Annie next person I have plenty of other
text editors that I will happily use
before Emacs and you can open it the
same exact way it's not living in the
terminal but you can open it using the
terminal it'll open up sublime text or
atom or whatever text editor you like
heck it can be notepad plus plus if
that's what you're into anything but
Emacs please I know that one's gonna get
some dislikes on the video I feel like
Emacs in like vim I think vim is
somewhere down here has to have in these
two I feel like people are just sworn by
it not because it's better at least no
one's being able to prove to me that
it's better than you know existing text
editors but because it's like either
they're old school and that's kind of
what they've been using forever or
they're hipsters and they're like
want to be like the old schools and
that's what they use so let's make sure
we like this video to counteract all the
dislikes for me talking crap about vim
and Emacs
gret I will use this a lot I use this a
lot when I'm messing with my ports in
all honesty not even a hundred percent
how I use it all I know is that when I'm
messing with my ports I use grep what I
do I tell you that I use that along
netstat as well whenever I mess with up
I hate messing with the ports because a
lot of times it just really screws with
me when I think something should work a
particular way it doesn't so I have to
work with netstat command and grep and I
just don't want to deal with it but
moving on one more don't use that one
Nano and a text file create an empty one
that don't use that one said looks
familiar but don't use that one from
what I remember and of course him no
exit 100% of course I use exit I just in
case I'm ever logged into anything
SSH store whatever exit well exit the
terminal plus log out of whatever you're
logged into within the terminal so it's
just helpful you use exit a lot easier
to just type exit then you know take
your mouse and hit the exit button up
here I don't know just found it to be
what I like to do also makes me feel
special because you know typing
something into the keyboard and hitting
Enter and then like something happens
that's fine our login I don't use that
logging into another machine on the
network that's actually pretty
interesting but if I could log into like
my co-workers who nope haven't used that
WC files listen number characters words
and lines in text file oh that's
convenient
WC don't use it maybe I will W get I
actually just used this recently because
there's this website that I really liked
I kind of want to see how is put
together I use W get and I forget what I
typed after that I found it somewhere
online and it pulled down all of the
files for this particular website that's
what in the in this industry software
development industry we call leveraging
a website it's just a fancy way in this
industry of saying stealing SCP and SSH
haven't used these actually not since
this class but since I graduated from
college because in college like I
mentioned before I would remote into
that remote desktop and this is
essentially what I would use to log in
and then to do whatever I needed to do
here and and that was like all
throughout school date yeah don't use
that echo I'll sometimes use that man
use that xargs is that how you pronounce
that is args don't use that either so
how is that outcome I didn't actually
count I think most of those commands
laid somewhere and like I use these
sometimes because most of them you don't
really you need to use I don't really
need to use them on a day-to-day basis I
don't want to speak for you because I
don't know what you do I don't need to
use them on a day-to-day basis but of
course I you know change directory LS
and I use a lot of commands that
actually aren't even in this list I just
want to see kind of the comparison
between college what they teach you UNIX
for programmers to an actual programming
job and essentially what I do so that's
fine I hope you guys enjoyed this video
remember I know there's gonna be some
haters that you know the Emacs of him
stuff so if you didn't already be sure
to LIKE this video if you did like the
video be sure to subscribe does it make
a lot of videos similar to this till
next time guys
we goin peace