CMD - Command Prompt Training for IT Professionals (Full Course)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
before you get into the learning zone from jss instructors you should be asking yourself a question why do you need to learn about cmd first you're going to come across this type of uh writings and descriptions so number one we're we're trying to teach you the skills so you can get confident with these descriptions so one is simply you're countering the descriptions right you're getting more confident the second reason is that it doesn't matter what level you are on in it whether you're a help desk whether you are that extreme master level engineer you still need to know about cmd ping is something that you're gonna do on almost on daily basis if you're working at the engineer level working with cisco routers or switches working with servers working with whatever you can name it in front of me even at cloud level you're going to come across command line now there are different type of command lines we know that we understand that there are more advanced things going on in the market right now like for example a lot of people will suggest you well if you're learning about cmd then just go straight to powershell we don't do that in this in these type of trainings uh because our goal is start from something that is heavily being used for uh in reality and then if you want to learn something more advanced then tackle that later on so if you're new you're going to learn about cmd first it's going to give you the idea it's going to it's going to show you how easy it is to use a command line and then you move on to more something more advanced because though that's that's how it's designed things are designed from little basics to more advanced later on so it's important for you to learn cmd because you're going to use it if you want to make your job easy you're going to use it if you want to become a little more experienced doing things because later on you may want to get into more command line scripting uh you know tools like that where you are working with cloud type of technologies and you don't want to be relying on just a web browser anymore you want to do things from a command line so that's later on stuff but for now you need to know the basics of ipconfig ping you know all that stuff you're going to learn from this whole course and once you finish this course i feel like you're going to have a very good idea practical knowledge on how to do this now if you have a lab access sandbox lab access if you let's say about the light membership plus membership even premium it doesn't matter you have machines here and every machine will come with a command line so you can open a server to open a cmd you can open a computer but since these are domain join machines and some are not you can actually utilize what you learned from this course to find out about active directory users informations and and expand your knowledge this means that you have the tools and there that that already comes with the active directory and everything is in there so then go ahead online and then try to come up with more skills and build your skills on top of your what you learn from these videos so this way you you will you will have a very extensive knowledge on cmd and this course will be used in multiple courses network engineer course sysadmin course it doesn't matter every course that we teach it that's going to be technical this you will find the same video in there so now uh instructor will take over and go look with this hello all viewers and we are going to start this new course named cmd and the course name is introduction to the cmd command prom why and how to learn cmd so throughout this course you will find that we will show you the importance of command line and we will also address all the answers that you raise the question about that why we use cmd and what sort of uses we have to use cmd in our daily task daily operation so let's start with the basic detail about the cmd what it is so as you know that before operating system the windows operating system we have the dos disk operating system and it behaves as a operating system but what it contained it's look like a black screen where you could type text in form of instruction so you must know the command to run that operating system if anybody let's say for example doesn't have idea or don't know about the command so that kind of person unable to use that computer machine so this is the basic difference between the command line and the windows operating system is what that in the command line you only have this black screen and where you could go with the commands with the text and in the graphical user interface as i'm going to show you here you can see that this is the graphical user interface you have windows 10 offering system right now and there you can see if i click on the start window it will display multiple applications at once and only i have to use mouse pointer to open any application or even if i want to delete or add any files so what i need to do is just open the file explorer and in a in a glance it's just open in an instant it just opened the whole directory in front of me and that here you can see if i click to this pc and go to the c drive so it will start showing me all the content all the other directories that is the part of your c drive and easily you can right click on any of the folder any directory and decide what you want to do with that directly like you can cut copy delete or if you want to check the properties of that directory you can go simply in the graphical user interface unlike in the command line you need to know the command of each operation let's say if i open the command prompt here and just check things here so as you can see on the command prompt that i have the administrator prompt here now here you only you can use this application by tapping the command let's say if i want to clear the screen so i must know the cls command clear screen command so you will find that the command line is not user friendly but you can do a lot more things you can even use this command line as your basic operating system because why i'm teaching this course why i'm designing this course for you because in many organization they are moving towards the server core product and what is the server product it is different with the windows server operating system here you will find the command prompt and the power shell now the question is raised what is the power shell and what is the difference between the command line and the power shell let me show you how the power shell looks like if i type here windows so it gonna suggest me and the second option windows power shell so the major difference you can see here is in the color now the color of the power shell is like blue and you will find the black color in the command line but that's that's not the main difference this is the difference of color here you can see there's a mentioning of ps so you can even open the power shell on the command line and the way to judge that whether this is a command promo this is the power shell you can judge with the prompt you will find ps in the beginning that tells that this is a power shell mode so if you go with the name as the name suggests the powershell what it tells that here on the powershell you can do wonders you can manage things you can run objects and it is more friendly when you are running a script on your operating system this is not been easily done on the command line so this is the major difference and there are so many differences between the command line and the power shell but as for this introductory video and our focus is on the command line the cmd so that's why we're going to explore this later what is the major difference between the powershell and the command line but as for this introductory video you only need to know that the powershell allows you to run a script and it can run different batch files by the command line because it is originated with the microsoft company it is designed and provided by the microsoft that's why it run only basic instruction and if you further explore the differences between the power shell and error so you will find that it is a task-based command line interface and use also used for scripting environment and it is based on.net framework but unlike command prompt it is just a line interpreter for the microsoft windows operating system so there are so much difference and you can also call the commands of the powershell as a command lens but in the command line in this command prompt the commands are just called commands so this is the major and basic difference but there are a lot more differences that are just beyond this moment beyond this video we will discuss later but during this course you will find that how we are showing things to you and how we are making this thing important for you because command line will help you in doing networking you can do so much work so much tasks related to the networking even you can fix issues you can use the command line in hacking and mostly you will find the command line interface in the routers in the networking sector here they provide the command line where you need to know such basic commands to see the router properties and similarly we will talk about all those commands that are used in the windows environment in the command line to do further things like delete directory add directory and format partition and there are a lot more things that we're going to cover to deal with the basic file commands how to make folder operations how to create folder and how to copy files how to move files and how to delete files and the folder in the command prompt so let's go back to the desktop environment and let's open the command prompt to further show you the operations and the steps now here i have this windows 10 desktop machine and here and type here to search i'm going to type cmd to show you these commands and their functions so here once you open the command prompt in your windows 10 you will find that it shows the administrator prompt sometimes it came with the system 32 that depend if you open your command prompt as the administrator privilege let me show you it is a little advanced thing but you need to know at this level if you right click on the command prompt you will find this run as administrator so this command prompt that you opens on the administrator privilege have some other powers you could say have some other privileges to run things to execute files but here as for this lab we're going to just focus on the copy delete cd those basic commands that can easily be executable on any level any privilege of the command prompt so as you can see that the whole tree of the directory is the originated directory the c where you have your operating system then you have user folder and in the user folder you have administrator folder so this is the tree of directory let's say if you want to go to the user directory right if you want to change your current directory and you want to go to directly to the user not to the parent directory so the command you're going to use is cd double dot and if you press enter so you can see that you just directly jump to your user directory let's say if you are in the user directory and you want to see the content that both sort of files and folder are there in the user so type dir and you will see the contents the folders the files you have in your user directory so here you can see you have admin definitely this is the admin account the administrator this is another admin account a new port is called field g's field these all are what the user account this is the same folder that we access in a gooey way let me show you if you're getting confused if you go to this pc and go to the c drive and there's a user and here you can see the list of directories the folders that are actually the account folder they contain all the data all the activity does in the account like the pictures videos let's say if i open the a new port so you will see the content like the desktop documents download so whatever the user is doing like you know downloading files making documents or just downloading music or making pictures so you can access all such content from your administrator account from your c drive so this is that specific user folder that we are dealing right now in the cmd so so here what you're gonna do so if you wanna go to any of the directory here listed so what you're gonna do is just type cd space admin and press enter so you are in this admin directory so which command is used to go in any directory to open any folder cd space and that specific folder name and let's say if you want to go back to your parent directory which is the c here so you're going to type cd backslash enter so it gonna took you directly to your parent directory which is the c so have you got this idea that if you want to jump directly to your parent directory so you should use cd backslash so it is simple so let's say if i want to see the contents of the c drive so what command i'm going to use is dir directory right so here we have preferred logs program files users windows there are four three or four folders here right so let's say if i wanna go back to the user so which command i'm gonna use cd users right then if i want to go to the administrator account so what i'm going to type at administrator admin this trader enter now you are on the administrator account so if i want to check the directories the subdirectories of the administrator so i'm gonna find these so right now i'm gonna go to the desktop to do some other stuff cd desktop so here you can see i am in this desktop directory this is the same desktop you are seeing here behind the cmd application so let's say if you want to make any new folder in the desktop so which command you're going to use mkdir and that specific name let's say i'm going to type jss enter so there's a folder jss it's been created at the back of your screen means on the desktop folder let's look at here right so if i want to go to that folder so which command i'm going to use cd jss enter so there you go i am and i'm in the directory i'm in the jss so so it's simple now let's say if i want to change the name of that folder and as you can see if i want to go back one step back to that directory what i did cd double dot that means it will take me one step back directory to the gss so if i want to change the name of this folder so what i'm going to type is rem space jss which is the previous name and type p labs enter so there you go the file name the folder name is totally changed with the execution of enter so that's how the command prompt work that's how the command line works so let's say if i'm going to create a new file in this jss in this p-lab so what i'm going to do is type cd space p-labs because the file name is changed now and let's get in that directory now here what i'm going to type type space null greater than sign space type the file name and this would be jss dot pptx enter so it gonna create this file and if you want to check just type dier and there you go this is the file you recently created so let's say if you want to change the file name so you will use the command run rem rename space jss dot pptx space and you could name it as p lab dot ppt x enter so there you go the file name is change and if you type dir so you can easily view that file here that the plab.pptx so this is the change happen once you execute this rename command now let me show you how to copy the file how to delete and how to move the file so if i want to go back one step back to that directory i want to make another folder so which command i'm going to use mkdir space jss now you will see another folder on your desktop and why i created this folder to copy and move the file from p labs to jss all right so to copy the file from any folder you must go to the cd place this is the folder that contain the file and the command i'm going to use copy space plab dot pptx space and the destinated folder so you can see the fun file is copied that's the process to copy any file from any location now let me show you how to delete the file so first i will go to the dir to check the file existence yes there is one file is the p lab and under file is jss we have two files here so what i'm gonna do is simply delete the file type dell space plab dot pptx enter and there you go the file is successfully deleted now if i type dir to c so there is only jss folder here and there is no any other file located here so here there's nothing no any file so let me create the file first type space null greater than space p lab dot ppt x enter now there you go the file is created now it's time to move the file because we show you how to copy how to delete and now it's time to learn how to move the file from one folder from one directory to another now there's the file and i'm gonna type move space plab dot pptx all right pptx space and now here i'm gonna type the new folder name p labs enter now the one file is move now here in the last let's cover the last command and that the command is used to remove the directory and the folder and the command is rm if you want to delete any directory you should type rmdir space gss and it will quickly delete the directory but before that you need to clean that directory so let's go to that directory cd gss and type dir to check the content and here you have p labs file so let's start type dell space p labs enter now the directory is deleted it's not the files in the directory and then it's time to delete the jss so cd and then type rmdir space jss enter and now it's gonna totally clean totally delete that directory from your desktop with how to manage tasks and services in the windows part by using the command line the cmd so let me take you to the practice labs portal and then show you what i'm talking about so here i have this windows 10 machine and let me explain you that what is test and what are services if we talk about the gui the graphical user interface so if you right click on your taskbar so you will find this task manager and if you explore the was what task tests mean there is something going on means you are doing something and activity is going on in your machine like in your daily life test is what what you have to do what is your intention to do something so test is that in the same way in the computer system there are a lot more tasks lot more services that started with the logging on of the machine let's say for example when you type your password and username to log on there are pre built built-in services and tasks that needs to run to show you the proper graphical user interface desktop so right now if you are easily watching your desktop like that because there are a lot more services that are running in the background and there are a bunch of tasks there are those are also running in the background and making it possible for you to easily use this graphical user interface because it is not the colors right now there are a bunch of services and tasks making it possible for you to see things like that so here in the task manager you can see that even we didn't open any application we didn't started anything but there are a bunch of tasks are running here and a lot of per processes are going on and these are the backup and supported tasks and services that are supporting this desktop feature this graphical user interface thing and if i click to the services the last tab so you'll you're going to see that there are a bunch of services that are running here you can see and a couple of services are stopped and some are ready to start but there are in majority there are in the vast number services are running why because these services are running in the background and just maintaining and managing this whole user interaction based desktop that's why those all services are really needed and essential to use this graphical user interface now as for this video i'm going to show you how to control how to manage all those tasks services through cmd the command line so let me close this task manager from here and there i'm going to type cmd type here on search and this time i'm going to open it as administrator privilege y the question is why i'm opening it with the administrator privilege because we have to deal with the services with the task and in a lot more situation you need to be the fully controller of the device that's why we need to run as an administrator because there are a lot more services windows system doesn't allow a basic user to stop or terminate that service or task that's why we run this command prompt as an administrator privilege so here on the command prompt i'm going to show you the first command of this video is the task list so if you type task list and press enter so you will see the list in that form and it it is a copy of what you have seen in the task manager but there you can see that it is with the black background the white text totally traditional command line environment and here you can see there are a lot more services are running and all you can see here the extension is dot xc means the files are right now running in the execution mode because in your desktop you always click to the executable file that's allow that application to run and here you can see that we just opened this command prompt and it is also visible here in the task list that means another task is added once you run this command prompt this command prompt process is also added to your task list and if you scroll up to the top so you will find the columns that will actually need to know before proceeding in this video that the image name is what it is the application name but there is another thing called the pid this is the id we need to record when we want to terminate any service any task here so let me show you what i mean and how you can easily terminate and stop any service so let me open another application and make it clear to you let's say if i type notepad because i want to execute the notepad so there you go the notepad just appear on the screen and then if i run the test list and one more thing for your help that if you want to retype the command that you actually typed so you can use the up cursor key to go back to the previous command that you use or executed so just type up cursor key and if there's a lot of commands you already use in a single command line session so you can easily do what just use the up cursor key and the down cursor key and you can easily find out the previous command that you used all right so let me issue this command test list and this time we're going to find the notepad the part of the task and there you go the notepad is mentioned here so what it means it means that you run the notepad you execute and it is added in the test list now the thing is how to terminate and stop this notepad task with the help of command line so we're going to type task kill space forward slash pid and need to notice that the notepad id is what and if you didn't figure out the notepad pid id so remove the command and then rerun the command task list and just make sure that you have the valid pid in case if you didn't have this valid pid it won't stop that specific task so then we're we're going to type task kill space follow slash pid and there you go type the pid and which is 7100 right now press enter and there you go you get the success message that tells that you have successfully stopped and terminate that task so we learn two commands task list and the task skill to easily kill and stop any test that is running on right then let's move to the service section so there's a command net start if you type this command so you will see all the working services that are running behind in the background of your desktop of your operating system so you can see there are a lot more services and so let's stop any service and for that we're going to type net stop space start then with comma and type windows time right now we're just doing this experiment so we are stopping windows time service and then press enter and here it is making a time and it is successfully stopped and what if you want to restart the service so you can change this keyword stop to start and then this service will restart immediately so there you can see net stop windows time and it is successfully started so this is about the services how you can stop and start any service in your computer system then the thing i need to share in the last is the driver query there is another command driver query so what this came in helps you if you want to know the drivers that are installed in your computer machine so you could easily type driver query and find out all the drivers that are running install in your operating system so that's it for this video we just covered five commands from task list task skill net start net stop and driver query and along with that the last command really helpful is the cls clear the screen if you want to clear the screen just simply type cls and it will clear all the stuff all the text from your screen and the one more thing in the last for the hint i need to prove i want to provide you is why we are using command prompt because in the hacking side in the ethical hacking you will get the command line interface of your victim so where you doesn't have the gui base environment so all controls and all tasks each and every activity if you want to perform on the victim machines you have the command line and in this video we're going to discuss and i'm going to show you the basic commands to get system details and program information and definitely those commands really going to help you to getting the details of the system and also these commands are really helpful when it comes for the hacking let's say if you have any system any machine and you want to see the details so where you don't get this gui method this desktop screen where these commands are really going to help you and moreover these commands are also helpful to do things in a quick and fast way so let's go back to the desktop screen and here let's first launch the cmd from here so what i'm tapping cmd then right click to run as the administrator and here just click yes to the uac user account access control user access control so here in the command prompt we're going to start the command with the command that gonna tell you it will create a notepad file for you and it will analyze and detect all the softwares or the products that are installed on your machine and after execution of this command you will see all such details in a separate notepad file so let's start with the command first we're going to type wmic and it's gonna start another menu another series and here we're going to type forward slash output then we're going to add column c c would be the directory you can change this directory as per your need then put column c column backslash and then you have to type the file name so i'm typing jss then add dot tags because in the command prompt you can only export the text file the notepad file so you definitely have to put this extension just right after the file name and then after typing this detail you add you need to add something more with the in the end of the command because we need to know the products and the software so we're going to type product get name comma version right so when you press enter it's going to collect all the products name and the details of the software and then create a text file and it will go to that location which you provided here so let's press enter to execute and once you see the next prompt then just go to that directory and check the file if because if you go before returning back to the prompt you won't find anything because you will find the text file but it doesn't contain any content so just wait for the next prompt and then go to go to that directory and check this text file so there you can see because this is the practice left machine that's why it contained little program some few products like office 16 update assistant and the windows 10 update so this command really helpful well when you need to collect product details when you want to collect some software details within your machine now within the same command if you want to know your cpu details let's say you want to know the core the family of the processor and each and everything so you could type cpu but when when you type wmic command then it will take you to this prompt and then you can type cpu to collect the cpu details what about your processor and how many codes and clock rate and each and everything inside out you can easily find after typing the cpu command now then we need to exit from this prompt so we're going to type exit enter and we return back to the normal command prompt and here we're going to type this part and this command also change the prompt and here you can work out on your days you can find out the details of your days and this this part section will dedicate it to know the details about your disk to get the information about the disk the the number of this that is currently installed in your machine all you can gather and know from this this part section so the first command we're going to type is list disk so list list disk list is so first once you type this list disk command you know this command will inform you and it will provide the output about the number of disks that are currently installed so you know here you can see that you have this zero and status online so you have only one disk you see that is attached to your machine right now so this is actually telling you that the physical disk in your machine is one only one physical disk is attached now if you want to further go to this disk menu you would type select disk and the number zero and there you go you have a message that 0 is now selected and from here you can go further forward to get the details like because we want to know the details of the disk so the command is simple detailed disk press enter so here you have these information these details that tells that your single disks have three volume first is for the recovery second third is the recovery first is the basic normal volume second is the 79 gigs it's your c and you're also getting the label the file system the type it is mentioned that partition and the info tells once is the boot and another is the system so this command is really helping you to know about the disk because when you do these things with the graphical user interface you need to go on the computer management and that's then you select the disk management console to collect and gather these details but here with typing few keys with pressing few keys with typing few letters you're getting these details without even moving your mouse and your cursor so that's the benefit of the command line the cmd now to exit from the disk part you're going to type exit and it will take back you on the system 32 on the basic normal command prompt now then there is another command related to the disk is the chk dsk the check disk and as the name suggests this command helps you to check the errors and the issues happening within your system and once you execute this command it will automatically start to scan errors and the bad sectors within your disk because you know when you install and delete programs from your hard drive you see there are some spaces got corrupted because what happens when you download or install any file in your c drive and then you start to delete that area that is reserved for that particular application gets written back to the free space when you're deleting that stuff but what happens when you delete that stuff and it doesn't get done correctly by means that it doesn't delete perfectly in a correct way so this area become bad sector because this area unable to change with the free space that's why these pet sectors when become in numbers it will impact your disk it will start making issues with your disk speed and other sort of things and you will see and you will find out that your disk is full without any data so at that moment if you use this chkdsk command so it will provide you all details and then you could easily repair your disk by adding some arguments against the command like chkdsk c column and then you could put any of the argument like r so it will start recovering your disk for right now we don't want to recover over this so you can use this argument then if you want to know the mac address of your machine so we have a simple command get mac and if you type so you will get the physical address of your machine let's say there is a network environment and you're working or you have a home router and you to make some restriction to your machine that this router will connect to that machine right so you see in that situation you must know your physical address and if you want to know the physical address in a glance in an instant so just go to the cmd and type get mac because when you want to check this mac address through the gui method you need to open different sort of dialog boxes and you need to go on different windows and there it required a lot of clicks but here it required only your pressing of the keys and you will get your details then after that if you want to know the whole system details like what drivers are working what is a network situation what is your ip what what what about your network card your ram your other sort of stuff related to your system so the command you're going to use is the system info and here you can see the output is there the network card number are two two cards are attached at the moment one is the hyper-v networks second one is the hypere network both are the hyper-v and there is a availability of hypervisor also you're getting some other details like where's your system which is your windows drive right and then what is your ram and how much ram is being used and the machine name and the workstation and the windows version the os details so you're getting plenty of the details that you need to know in fixing things and in dealing with the system issues so you can easily get those details by typing the system info command then in the last just similar to this command but this command is used to know about the driver details so if you want to know how many drivers you have and which driver you need to add because there are certain features and certain programs and mostly with the games some games require some high updated drivers and you want to know that which driver you need to install and add in your machine so you could type this driver query so it can tell you and it will provide you the output with all the details of the driver that are currently working and installed in your machine and this is too much details to verify and troubleshoot your driver related issue and if you are not getting that driver install so definitely before fixing other issues you must install the driver and 50 and 60 chance that your issue would be resolved so you need to know these came in and most important thing that i want to add here that if you are familiar and perfect and good at command line so you could easily work on the power shell also you could easily work on the server product and also if you have any interest in hacking and if you know about the ethical hacking and you know how to get the remote session of any machine by doing some hacks so the command line is still really going to help you because there you only find the command line the black screen with the white text so it definitely helpful for you to go in that machine and check the details and transfer file from here to there so this command line skills really help you to easily work on any remote machine i'm going to tell you the sixth command so you can manage your user or remove and you can create password even you can know how many users you have in your machine so let's start with this practice labs machine so first let me tell you another command to check the users on the graphical user interface so you can acknowledge all the users and all the account settings so what's the command is l user usr mgr dot msc and if you type this on run or here type here to search so you will find this user console and if you want to go on that window that manager user manager so you need to go with the computer management and then you're going to select the user section but with the help of this l user mgr.msc you will directly get into this user manager console and if you click to the user so you will see the details of the user so this is what the graphical user interface to check your user right now here we're going to check those things with the cmd so what i'm doing is just typing cmd and i'm gonna execute it with the administrator privilege now here now the first command is what how to check the users that how many users you have in the same machine so the command you're going to use is net user and press enter so here you can see there are three columns here the these three columns tell you all the users you have in this physical machine not the domain user right now so here you have admin guest administrator gennade user 9 default account user 7 and some system accounts now if you want to make a user account if you want to create a user account so what is the command you're going to use is netspace user then type the username the exact name on which you're going to create the user account so let's say i'm going to name it jss after space put forward slash add and the exact password you're going to use so i'm making it the password p a double s w0 rd enter now the command is executed successfully and you can check this user account simply by the two ways first you can run net user command so it can tell you that you have this new user and right we have this jss user right now under the administrator it tells the account is created successfully then if you want to delete your any of user accounts so you have the list on top and you can select any of them and you will type netspace user forward slash and then we're going to put the specific keyword is dell dell is space and we're going to delete this generate account g-u-n-a-i-d enter so it is deleted successfully and let us verify now there you go the account is deleted and it is not in the list right now so the account is created successfully then we set the password along with that and then we learn how to delete any user account by using the cmd now then sometimes in windows 8 and windows 10 or might be in windows 7 the administrator account disable by default and if you want to check this thing if you go to this user manager and right click on the administrator and go to the properties so often you find check on this option account is disabled so mostly the local administrator is disabled by default in windows 10 in windows 8. so what we does all the time if we want to enable this account we just remove the check by using this user manager console but how we can do this action with the cmd now let's look into the next command and that is to enable administrator account that i already show you sometime this account got disabled and i showed this thing in the beginning so the command is net user space administrator space forward slash active column yes so it can enable the administrator account and the same way if you want to disable that account you could use no and it will disable your administrator account if you don't want to change your password and just make your account simple click to login so you're going to use the command match user space the username put the double inverted commas let's say i'm going to change my administrator as a password less account so i'm going to type staric and here i'm not pressing any key for the password just pressing enter and the command is successful now you can easily log in with your administrator account without the need of password so that's all about this cmd video and in this video you have seen we've covered six different commands that you you could use for managing your user accounts your password settings to delete your user account and all these commands really help you when you only have the command line mode and mostly in the server product or while you're doing hacking and you got the remote controls of any system so you can easily manage things by using the cmd i'm going to tell you some commands that you can use to hide your files and encrypt your file by typing some commands and why i'm telling you these commands because there are other ways to hide your file by using gui but there are certain other ways and techniques to show those files and if i show you in the start so you could understand what i'm talking about but with this commands you can easily hide your file and nobody can access your file until you type another command to show all those files so let's start this video with the gui interaction then we will move to the command line so here on this windows 10 machine let me show you how you can hide your file by using the gui methods and how you can easily access those files after hiding so this is the gss folder and if i right click on that file and go to the properties and in the last section against the attributes you will find the read-only and hidden if you make check on the hidden so this file will hide and you no longer access this file you no longer see this file but if anybody knows how to see the hidden file so he or she that guy can easily go to the folder option switch to the view tab and make check on show hidden file and then there you go the file is there to access so this thing are not helping in hiding the file in the way you want to hide so just show the file and remove the check and make the settings defaults so you see the view tab don't i don't show this hidden files so let's move to the command prompt and just do some wonders of the keys and the command and hide those files totally and it can only be visible once you type the command again so i'm going to launch the cmd and why i'm typing here on the address bar of the of this gss because when i'm launching the cmd from this jss folder it gonna open with that jss prompt so it will locate this prompt on the jss folder so if i first run the command dir so there are three files we have now the command we're going to use to hide those files is a t ad trip attribute full form is attribute and you can search this attribute here in the google you will further get know about the file attribute command if you type that and press enter so you will get plenty of information about this command and this keyword and what are the other arguments you could add with this attribute command so let's go back and here what i'm going to do is just type plus h h means for hidden then plus r read only r for read only means file needs to be open and it needs to be check and click only and then i'm going to add plus and s for the system and if i press enter so you will see if you go back to the gss all files are totally hide and if you again go to the option and go to the folder option view and make check on show hidden files you won't see those files back because you totally turn off those files for access so that's the thing i want to show in this video so if i'm making the setting defaults so what command really helps you to make those files visible again so what you only have to do is just type minus means just changing the sign you're reverting the signs and then type the same command and press enter and if you go to the jss you start able to see those files as they were so this command really helped you to totally hide your file and you can only the person when you run this command you can easily make visible those files because nobody knows where you install your file where you copy your data so you're the one who knows on which directory you hide something now after that we have another command to encrypt file and if you want to further research about the encryption just go to the google and type encryption so you will get plenty of details what is the encryption and how it works and the basic definition you got is to convert information into a code so encryption is what it converts your file your text your any information into unsensible form in a form that cannot be readable so for example if you have a file in your machine and you want to transport that file in somebody's usb or some other media and you don't want to just share this file with anybody or there is a chances of recovering back of the data from that usb if you delete the file after copy that file to any machine you see so in that situation you can encrypt your file so it will become a anonymous file the file that is not useful and then you can copy that file from your machine to that pen drive or removable drive and then paste anywhere else so it can help you to totally hide the data within that file so what is the command to do that cypher space forward slash e and press enter now there you can see it tells that all three files are encrypted and if we go to that folder you will see this lock on all these three files that tells that all these three files are totally encrypted and let's say if you want to decrypt all those files so you can add d just after the forward slash and you will start seeing all those files normally so this command really help you to encrypt your file and this file can only run on your machine but if somebody try to copy those files from your machine to another machine or in their device so that guy that person unable to run this file because it is encrypted and then we have under command to upgrade this encryption system this encryption firmware that is added and the command is cipher forward slash re-key and then you press enter so it update your efs key from files in the folder because once you encrypt your file so there are definite some keys created because keys let's say for example if i open a notepad to explain this concept what is the key in a little i'm not going in the detail for example if i type a equals b right and then i type a a and then i ask you what is the answer so you could reply you will reply instantly that because a equals to b so the answer is bb so a equals to b is the key so if i send some data in the form of a a so the person right behind that communication unable to understand because he doesn't know about how and what is equals to a so this is the key and this is a little concept i want to clear in this command line course this is actually the key so if you want to update your keys of the files that are encrypted let's say if i encrypt my file by running this cipher forward slash e command and definitely there are some keys created to decrypt those files but in any case if i want to upgrade those keys so i run this cipher carbosite re-key command so it gonna upgrade all the keys to decrypt those files so if anybody if any sort of guy unable to know the keys of your file to decrypt and when you run this re-key command it will change all those keys so the bad guy the interviewer unable to decrypt your file again so that's the purpose of those commands nonetheless a command which we used to know about the file detail let's say if you have a file and you only able to see the extension of that file and you don't know that this file is related to which application so you could run the command so and let's say if i have dot text extension file so it will tell me dot text equal to text file which means it is a notepad file so this command really helps you to know about the parent application and software that is handling that file and you could run any of the extension against this so command association this aws oc full form is association but here we need to write a double slc sub dot tags and dot jpg whatever you want to know let's say we type jpeg so it will tell us this is the jpeg file so this command really helps you to know about the file detail with the extension if you only have the extension detail and you want to know that which file is it because these are the simple and basic extension most people knows about those extension but in contrast there are other extensions that are so difficult to understand to know so you can simply type soap.that specific extension and then this command will tell you that it is related to which extension and which file form creating and exporting files through cmd and in this video we're going to show you how you create export and read files by using command line cui so let's move to the desktop so here on the wind10 machine first we're going to launch the cmd so i'm going to type cmd on type here to search and run as the administrator and here you can see it is prompting to the administrator but what i recommend during this practice that you should change the prompt to the desktop because when we are creating files and doing other things so you will see the output in an instant on the background so for that let me type dier to see the content that other directories we have in this administerior folder so here we have desktop so type desktop and directly jump into the desktop now here whatever the file we're going to create will just get located here on the desktop and you can easily see on the background so the first command i'm going to show you right now is that let's say for example that if you open any service like the task list and you want to know that what sort of tasks are being running on the background of your machine but here you can see there is a plenty of entries and there's a bunch of details and you want to export all these details in a separate text file so the command you're going to type is task list is the same but you have to add some arguments so put this greater than sign then type the file name and the extension and press enter so it will create a file in an instant and you can see in the desktop background and there you go all the details and all the tasks are being created in a separate text file now in the same way if you want to type any message any details in the text file and want to export in your current directory so you're going to type echo ech o echo and then you could type any of your message detail whatever you want to type is like jss or might be like type the website name job skill share dot org and then put this greater than sign then add the file name gss1 dot text press enter so it gonna create another file that contain the exact text you type here and if i open this jss1 so you will see that exact text that you mentioned in the command line is totally exported to that specific file so this can really help you to send and type any of your details when you're in the cli mode and you want to type any sort of message you want to make any reminder any memory any sort of file detail ip addresses whatever the stuff you want to export or you want to type in a separate text file so you can use this command to export your text within a separate text file now there is another command that allows you to type multiple lines and you could go so much in detail while typing things like the command is copy con space and mention the file name jss2 i'm changing one to two because jss1 js is already created so this commands this command will allow you to type plenty of tags and once you stop typing by pressing the ctrl z it won't stop you for typing the text so here you can type anything like please subscribe our channel right and after that if you want to stop this editing mode so you can type press ctrl z so it gonna stop and then press enter once you type control z it will show this z here on the screen then you need to type press enter you need to press enter and then it will take out from the editor and the file is created as you want you can see here on the back on the desktop you can see the text is there and the file name is the same so you have two commands to type your message your details your tags but the copy con is allow you to type plenty of lines and multiple sort of words and whatever the bunch of details you want to export within the file name so you could type here and you can easily find out that file where you create this file now after creating those files if you want to check the content of the file definitely in the command line you can see the text but if the command line command prompt is related to your microsoft os so here you can execute commands from the cli and it will execute on your microsoft operating system but as for the text if you want to see the text here on the cli of any file any text file so you could type type type type and the file name jss2.txt and must add the extension so you will see the content the text the con the thing that you put in that file in the text form you can see in the cli in your command prompt so this can help you to open your text file in your command prompt in a cli now most of the time we want to create a new text document and we want to create new jpg file and we did this steps these things and so many so many times plenty of time to create the new text document by right clicking on the desktop and hover your mouse on new and select this new text document and it will create a totally new file for us and then we start typing and copying stuff from the website and they're sort of places so this will create a new file by just doing some glee based steps but what if you want to create a new text document kind of file by using the cli so the symbol command you need to execute is you're going to type type null null means new stacks because you don't want anything written on that file it would be totally new text document based files so type null space and just type the name already because here you need to rename the file but here in the cli you are typing the name prior the creation of the file so type null greater than space.jss4.tax at the extension and you can see the gss4 is created and it's totally clean a new text file in the same way you can create other extension-based file like for example if you want to create html new files so you could name gss5.html you must be familiar with the extension while using this command and you can see here new file is created or you can type png and add 6 so it's going to create a png file so what you are just covering here is that by using this command you can create a new file in most of the time we in the desktop in the gui environment we create new text document and then we start copying stuff and typing other details quickly so by using the command line you can create these new files by typing these command with those argument and with the extension and the last if you want to execute any text file if you want to run any text file or any other file on your os by using the cli because here on top i show you if you want to open any file in a cl i like i showed this command type jss to the text so what this command did it just opened the tags it orient the text on your cli but what if you want to open it in an in that specific application in a gui way in a gui so what you have to do is just type the file name and press enter so it can execute the file and open it in in an application for example you have pain files so it can open that pane file in that for example we have jss5.htm and if i press enter so it can open it on the microsoft edge or whatever the browser you're using in your machine so this command will open the file on that specific application from which this file is originated and if you type type space and the file name with extensions so you will see the text on the cli so this is a little difference to manage your disk and if you use the gui so it require a lot of clicks and a lot of windows to open but in the command line you only need to type some commands and the magic is on so let's move to the windows 10 machine now here on the windows 10 let me show you if you use the gui and you want to manage your disk with the graphical user interface so which menus and which console you need to open if you right click on the start window and there you will find the disk management console so if you go there so it required a lot of clicks and a lot of options to select but if you want to do your work directly with the commands and in the quick way so you could run command prompt and as i click to the type here to search i will get the command prompt automatically so right click on the command prompt and run as the administrator so here in this test i'm going to show you how you will format your usb your pen drive and how could you label that drive and how could you manage that drive by using the commands so the first command we're going to execute and run here is a disk part and this command actually took you to the disk management environment and here there are after getting in the diskpot command you have only few commands related to the disk management you could run here you cannot run all the commands here after get in the diskpart environment so here if you want to check the number of disks you have so you will run the same command that we covered previously in the task list disk so it will show you the number of disk you have and the disk 0 is a 20 gigs that's our primary disk that contain the operating system and the disk one is what is the removable drive it is the usb and let me show you in the gui if you click to the file explorer and click to this pc this is the usb that i attach for this specific video to show you how to format and label that disk now after typing this command you have another command to select the specific disk and the command is like disk one and it depends on the number of the disk you want to select so you you could write that same number here so i'm going to select the disk one and now here this one is selected now we're going to run a command clean to just do a quick check over that disk and after cleaning that disk once we get this successful message from the command line that the disk is clean then we're going to create a primary partition of that disk and for that we're going to run the command create primary partition enter so this is the command range we have and as you can see that i misplace the name the exact key like create polish and primary is the exact command and i run create primary partition so it will tell us that you need to put that that word that specific command what before that one so we need to add create partition primary press enter and there you go you get the message that the primary politician is successfully created now we're going to select the partition one so the command is select partition one so after creating the partition we just in the selection of that specific partition and now we're going to do other stuff and the stuff is to format and this is the main in the main part of this video that how you could format your partition your removable drive your pen drive with the command line so the command is format fs file system equal ntfs and then space add the keyword quick so it will do this whole part quickly but take a little time but after all in compared to the normal format it does this work quickly as compared now there you go it is 100 complete and formatted now it's time to active this specific drive and it is now marked as active and then we're going to assign that partition and there you go it is attached and now in a working position but here you can see still this drive don't have any name so after assigning we need to exit from the disk part by just simply typing exit and if we go to the gui we're going to find that we have f drive the usb but it doesn't contain the label so to name it to make label on that drive we just simply type label and the drive letter f now there's a mode open for you and you can type any of the names so i'm going to name it jss and then press enter so the label is changed to jss and you could verify here too that the ch name is changed to jss from the simple f drive so by the help of these commands you can format your pen drive you can simply select you can change the label you can clean your disk and it is actually the disk management commands all now the question is if you want to make your usb your pen drive with a bootable usb for windows operating system so the process is simple just follow all the same commands as i did and then mount the iso on your computer on your any storage and then copy all the content of that iso in the same usb in the same pen drive and it will become a portable usb for windows installation we have the command tree shutdown history so we will cover those commands that can already help you to check the previous command you executed and the command related to check the whole directory of any drive of any folder so without investing time let's quickly move to the windows 10 machine here let me run the cmd with the atmospheric privilege so it is simple as you know right click on the cmd and run as admin now there on the cmd the first command we're going to execute here is a tree so let's say for example if you want to check the folders the directories and the sub directory because you know in any of your folder you also create some other folders and even with the file when you install any program any application into your machine it also created folders then the subfolders and that that subfolders contains your executable files so let's say if i type dier under this administrator folder you could see these folders but definitely there are some other sub folders that are in that folder so let's say for example if you want to check any directory or any executable file and you are guessing that this might be here in that sub in that main folder and you are not sure about the subfolder or the exact location of that file so the command tree will help you to know this and you just only type tree and press enter so there you can see it is providing you the subfolder detail within this administrator folder let's say you wanna know about the whole directories having in your program files or in your windows so which command you're going to use tree so what it will does it will collect every file every subfolder and display to you in a form of tree that in which folder there's a subfolder and then other folders and then it will reach it will show you that which executable file and which file is located and at which subfolder and which is originated with that specific folder and you can easily figure out by using this three command and as you can see here that it cover any every folder of your c drive and provide us the file locations and all the structure you could say and this is the tree what we call so in this way you could easily use this command to know about the directories you have in your any folder or in any drive now after that we have another command and the command is simple date if you want to change the date of your system if you feeling that the date is changed and it's not correct so you can change and if the days these days it's already correct and you don't want to change so simply copy that provided date under this new provided section so it will set this new date as the current date and in this way we have a similar command time so if you feel that the time is not correct on your system so you could change otherwise if the time is right and really on your standard time base so you could go with that so the time is changing that way because most of the time when you're using your browsers and if the date and time is not correct they start providing error and they stop working and the error is shown like that the police must change your time and set according to your standard time then this browser or internet would work so in such situation you got stuck and you get in that mess where to open the time settings and you could open control panel and it definitely it will take time to reach on that specific window or gui option but here in the cmd you have basic commands date and time and in this way you would easily set the time and just update your date and time settings so then after we have another command to check the history of previously executed command let's say you run a lot of commands and somehow you missed any command or you want to see the cmd that which command i use before that command and that sort of things and you want to be sure about all the commands that you executed or run so there's a command task key forward slash history press enter so it can list for you all the command you want to see you want to write down we want to notice that all such commands that you executed will be displayed in a form of list and you could easily watch and if you're creating any document you're preparing any sort of file and history of the commands so you can prepare from that command so it will help you to track your history of the commands that you executed on your cmd after that we have another command this is quite different and typical because this command will shut down this machine so it is related to turn off and power off the system but there is some argument that you can add that make it more logical and more helpful so the command is shut down and if you press shutdown dash s so this definitely means that you want to shut down your machine but there is another argument you could add here is dash t so if you add this dash t it will allow you to add seconds that after what seconds you want to shut down your machine so you can add if you want if you don't want to add any seconds you just want to quick shut down and in an instant so you can type double zero so it will take no time to shut down your machine but if you have planned something or you're leaving for something and the required timing for that installation let's say for example you're deploying a software and it is providing the estimated time for that deployment it is about 10 or 20 minutes and you know how much seconds in the 10 and 20 minutes so then you can easily add some more time considering that estimated time and provide that seconds here in the form of seconds second unit then what will happen after that time reach the machine will go automatically shut down and that's the best way to shut down your machine when you off from your desk when you are not on your desk and you feel that i won't come on that specific time so once this whole deployment whole process is done my machine supposed to be shut down so in such cases you can use this command and add the timing to automatically shut down your machine so i'm not going to do that because you know this will shut down my machine and in the same way you if you add dash r so it will restart your machine in the same way if you add time t for time and provide some seconds for restart so it will do the same but it won't shut down your machine it will restart your machine so video i'm going to cover some command that's help you to check scheduled tasks as well as your shared files and most of the time you shared any folder and just you want to check that how many user at the real time using that file have accessed the file so we have some commands through you can easily monitor the status that how many user at the real time are accessing that specific file so let's move to the windows and y now here let's run the cmd with the administrator privilege as you know so here on the command prompt the first command we're going to show here is check ntfs so what's new in it most of the time you use the command chkds key the check disk and it is very helpful and used so many times and most of the it personal are known to that command but there is another command where you're just changing this dsk to ntfs so actually this command checks this file system the ntfs file system so the command is chk ntfs and enter so here the thing you need to add after this command because in the chk dsk you mostly provide the drive letter so in the same way you have to provide the drive letter and this time it would be c for the testing purpose and here you can see chk ntfs space c colon so it is telling that this ntfs file system is correct and it's not dirty so the dirty means that it's working correctly and there is no any sort of issue and error regarding this file system on the c so how you can see that here how this output really helping you to totally judge the system file and also your monitoring and getting output about the status of the disk now after that we have another command and this command really helps you to open the control panel so if you want to open your control panel from the command line so you should type control and press enter so what it will do it will open the control panel on your gui so most of the time if you are using command line and you have to do something in a quick way and you want to launch your control panel so just type control in the command line and it will display the control panel in an instant and most of time there are a lot of tools we have in the windows in the gui environment in the control panel so we have to access the control panel to fix those things even to show to view such sort of options so for that purpose you can simply type control the command line and it will open the control panel now the command is scheduled task and this command does what it helps you to see and check and monitor all the tasks that have been scheduled in your windows operating system and here you can see there are plenty of tasks here that are already scheduled in your windows environment and if you want to see those tasks in your gui so you have to go to the computer management and here if you click this task scheduler so it gonna display all the tasks here but if you want to see all the tasks in the command line so you should type the command schedule task and what if you want to create a separate file where you want to export all the scheduled tasks so you would write scheduled tasks greater than sign and then name anything to that file and press enter so it will export all the tasks to to that directory so you can access that file and you will get all the list of the scheduled tasks in a separate file so that's the best thing it is offering in the command line that you can easily export the list of all the scheduled tasks in a separate file we have another command ver and as the name suggests as the short form suggests the version command and it will tell you that which microsoft version is currently running in your machine so you can easily in an instant find out that which version is installed and deployed in your windows in your currently in your machine so you you should type ver to find out that specific version of your operating system now the last command of this video is open files when you run this command so this command will tell you the current sharing let's say for example you created a folder and shared within your local network right and you want to see that how many users are currently using that file right how many persons right now are accessing to that directory so for that you can simply type open files and it will provide you the data and the user which are the number of user who are using that file currently in that output some practical examples of ipconfig command with other keywords that are mostly used as a id help dex personal or with the it support person so we're going to show you all such examples in the command and the usage of ipconfig so let's start the video but before that please subscribe our channel and press the bell icon so you won't miss any update now here i have this windows 10 machine and let's open the command prompt that i already opened for this video now here let's say for example that you want to know about your network details and network stuff let's say the ip address right or you are fixing any trouble that the system is facing like it is not getting internet or there's no connectivity and in the first hand on the troubleshooting side you must know the network configuration whether the configuration is correct whether the ip address is provided or been set so all these network information you need to know and in most cases there might be some issue with the default gateway that's why the machine is not getting the internet the packet the the machine let's say this is a specific machine enabled to reach to the server like the google server it is unable to do browsing and this is definitely happens when the machine doesn't have the default gateway but how could you know that this machine having any correct ip address or there might be some sort of default gateway is not available and there are some issues happening like in the organization where the computer are connected with the server sometimes the same ip is being released to the same computer to the one computer and then when this computer just turn off and another computer turn on so it releases that ip to this new computer so in that case when this previous computer turned on there must be and there is a kind of ip conflict happen so how could you know those information how could you gather and collect this input and then to process and just apply some of your tools some of your techniques to troubleshoot this issue so all sort of basic details and investigation you could start with ipconfig command so the best point you could remember for practical example of ipconfig that it is the initial and the first tool you should apply to investigate your network details and from this point you can even start your investigation so let's start with some practical work and these are all the practical examples you could follow and apply in a different way with the environment or with the trouble so right now if i don't use ipconfig let's say and if i want to know the network details so what should i have to do is just right click on the network and internet settings then open this window where it contain the network details and adapter detail and definitely it takes a lot of clicks and a lot of windows to open to reach to your exact location from you can collect information and you need to just go there to get the basic details after getting this input then you can realize that what should you need to apply here to troubleshoot this issue so here what what i did is just click to the change adapter settings and go to the adapter or might be i can click to the adapter directly and it will show me this window that contain the adapters and the receiving and the send packets so if i click to the detail so i can easily get the details of the network parameters like the ip address the subnet the dhcp server right the dns server and most of the important details i could find here like the physical address so here you can see that it takes a lot of steps and a lot of clicks and you need to open certain windows and certain locations to get the details but here you can see you cannot transport this all details into a notepad file all you need to do is to just close this one or you can take a screenshot but if you are doing some kind of documentation and you want to transport and you want to create a separate file so you if you want to export the all details that you collect on any system so the command line is the best to do this to do so so let me close these windows and show you the ipconfig command and its uses so here's the command prompt and if i type ip config here and press enter so immediately you will in the first look you can easily realize that how many adapters you have in your system so sometimes adapter will hide it in your network and sharing center let's say if i open it again for you to just make sure that how this ipconfig command is useful to collect information about your adopters about your network parameters so if i click here and open the adapter settings change that upper option sometimes the adapter will hide and you enable to see that how many adapters are working and are attached to this same machine but by using this ipconfig command it will list down all the adopters that are currently working so it will not just hide all those adapter that might be hidden due to any sort of settings or windows general behavior in the response somehow some files got hidden in the operating system but but the best thing in the cmd that whenever the file is not available in the gui in the graphical user interface you can still see that file access that file and it must be visible because you're using the cmd but there are certain commands you could use to hide those files now here in the first look you are getting the information about the number of adapters you have so right now we have the single one ethernet adapter ethernet 0 so ethernet 0 is the adapter name and the second thing you are getting is your ip address your subnet in the default gateway so it is providing you little detail but it is useful somehow and from this ipconfig command without any keyword and argument you can easily assess that this machine have the ip address it have the default gateway so that's the best part of this command but in contrast you enabled to find out the dhcp setting the dhcp server the dns server your physical address the adapter mac address so this came in actually telling you the network detail but not in brief it is just pieces of information of your network so if you want to collect the whole detail and like if you want to know the dns address the dhcp server address whether the dhcp is working or not because this command is not itself capable of providing the dhcp server detail like whether the dhcp server is working or not or the ip is set manually or dynamically like automatically so for that you need to run another command ipconfig space forward slash all and once you press enter so definitely you have the single adapter working here and by pressing by pressing these keys and executing this command in a glance you will see this output and if you start from top to bottom so first you will see the host name the machine name and here you can see that the details are more explored and in a huge way like you're getting a bunch of details unlike with this with this just ipconfig command so on the top you have the host name so with this command you could easily know the host name and then the description that contains the adapter name and the physical address your mac address and this is different with each adapter so currently you need to just make sure that you are on the correct adapter that is providing you the internet connection so you will get the adapter detail once you scroll down to each adapter so currently there is one that's why we are getting this output related to that one specific adapter then another line that contain the dhcp enabled that is yes so it is straightforward and quickly telling you that your dhcp is enabled and this machine receive the ip with the dhcp server then you have the ipv6 addressing detail then the ipv4 and the subnet mask and the interesting part is it is telling about the least time and also the lease expires in the default gateway and also it is telling about the dhcp server and the dns server too so all you have all the details you have all are required and helpful to assess and start your investigation from this point let's say your user complains that the use machine is not getting ip address so what should you have to do is just run this ipconfig command and first check whether this machine getting an ip address and let's say if you type ip ipconfig and you didn't get any ip address let's say you get answer you get the output is 169 and that's something it means that this machine didn't get any ip address so that could be the best way to determine whether this machine is getting ip from the dhcp but in contrast if we go to the gui and if you want to know that whether this machine is getting ip address from the dhcp so you have to do so many steps and you have to open so many dialog boxes to know whether this machine is getting ip editors automatically so if you open this dialog box and in this window you can see the check is made on obtain an ip address automatically so here it is telling that the dhcp is working but here in the command line there's a straightforward answer for you that the dhcp is working so this is the best part of the ip config forward slash all command that it provide you a direct answer then the listing and the dhcp server also you can locate this dhtp server from here and find out that which dhcp server is working and also you're getting the dns server detail and in next video i will tell you about how to find out the fqdn of the dna server this is the topic of another video so i'm not starting this topic right now so how this ipconfig space forward slash all came in is helping in troubleshooting issues that you are getting enough detail in the beginning to investigate the problem that whether the problem is with the machine or with the other part of network that might be the router or switch so after getting this basic detail you can analyze and you can assure yourself and you can done that this machine is perfect everything is configured correctly so there might be some issue with the cable right or with the other network devices like the switch or like the router so you can easily confirm yourself at this point by getting this output like if the dhcp is enabled if the ip address is correct if the dns server if the dhcp server the default gateway all are correct all are the one that you provide or you set in your dhcp server then you could easily show yourself that everything is working good here so definitely there must be some issue with the other network devices or with the cable nonetheless i'm going to add some keywords with the ipconfig to show you other options and other sort of function of this command let's say if you want to renew the ip or if the user calls you and asks that i'm getting this dhcp conflict issue in my machine so if you want to fix this issue remotely so you can take the remote or you can tell the user that go to cmb and type ip config space forward slash renew so what this command does it just refresh the ip or just made another query to the dhcp server that just refresh my ip so if the ip is in conflict on the dcp server that in the same time ip goes to the two machine and if if there is a conflict so it will resolve and it will totally refresh the ip for use right now there's no conflict so it returned the same ip back to this machine then another command and that you use and somehow you may require that command to execute is a display dns so once you execute this command it will tell you all the dns that are used or might be your machine is make contact with those dns or if the machine let's say for example you want to know that this client machine is doing what let's say you get a complaint or you just saw some sort of threats and malware and some sort of you found some sort of downloading right you got some report about that machine that this machine is doing some malicious activities and you want to know that on which web server this machine is connecting or which other web server are in contact with that specific node in specific client so you could run this ipconfig space forward slash display dns so it will tell you all the dns details in the past it just contained the history of the dns that were in contact and that provided the exact web server location where this client machine had connection so in this way you can judge and you can specify that definitely this machine is doing some malicious activities so this command is really helpful to find out the dns connection and if somehow your client is enabled to contact with the web server with your dns server let's say your client is enabled to get the details from the dns server right or if the client is unable to let's say if he opens some file with the administrator privilege and he is typing his password his account name but didn't getting any response from there and there's sort of error like the dns issues or other sort of for example if the client is trying to ping or share file with another web server another server within the network and there is no connectivity with that location so there's a command flush dns and if you type this command so it will do what it will flush the dns cache and just refresh the whole dns activity and definitely this dns related issues would be resolved so this you know uh just don't take this uh like the simplicity of this tool uh we use this even in the cci labs this is uh the basic tools but very important to consider to be a very important tool in our networking environment and as a network administrator personally i have been using paying tool all the time all day long i'm using paint so uh let's talk about a little bit about the pink tool then we will hit the lab it comes under the protocol called icmp uh because we are going to uh check the reachability of this icmp protocol the ping is a command prompt utility used to test the ability of the source computer to reach the destination so let's suppose we have two computers connected with each other with any mode i have no idea whether it's switched out or whatever and they have some kind of ip addresses i want to see whether this computer this one is alive or not this computer is there on my network or not this could be the pc this could be my server this could be even my access point because all devices has some kind of identification which is ip so with the help of ping tool i am just going to hit this device with a ping tool and this device is going to give me a reply back saying that i'm alive so this is how instead of going to that computer that is maybe some far away in a floor two and you are in a floor one instead of i will go into the computer and i will see everything is working fine in that computer uh this computer is on or not i just try to ping that computers directly from my floor one and if i receive the reachabilities mean that computer is alive it has some options available we will discuss a lot in detail in this demo and we will talk when we'll hit these options let's go to the uh demo and then we will talk about these error messages then this will make sense so i hope everybody is familiar with the command prompt what is it yes it is it is pre-installed in your windows machines and even in the linux as well in the linux we sometime call it shell or from the console uh and in windows environment we call it a command prompt if you type on your search bar and type command prompt or just type cmd you will find this black console kind of application just click on that okay so um first of all i give you the scenario i have my device which is connected on ip192 168.100.3 then for this demo i'm using my access point on the modem which is connected at 192 168 100.1 so let's try bringing my access point first of all so i want to see end-to-end reachability type paint then the ip address of the device which is in question which is my access point so time 192 168 100.1 which is the address of my access point and click as you can see we it will generate uh one two three four replies basically saying your access point is alive and it is giving me reply so i have reachability and to end with the access file in the same fashion if you have 100 devices attach in your local area network and you want to see the reachability you can just do bringing all these devices one by one one two three four to check the connectivity then if i want to go a lot in detail what else ping can do just typing then hyphen or minus with a question mark and hit enter it is going to show me another options what else i can do with this ping command as it is mentioned minus t let's see what it does so i am not going to go a lot in detail about this all everything what is doing but just the important options that we most often use in our working environment like minus t if i ping the same my access point device with the help of option minus t and type 192.168.1 and hit enter before my reply stopped at the fourth point but now as you can see it is on and on and on it is just keep pinging that device why we need this minus key option because we want to keep because this is giving me a reply but sometime it happens some device is not not giving me reply if it is not giving reply it will be like this let's suppose we have 55 now you can see the reply from this device saying destination host unreachable so it means this is unreachable now with the help of minus t i kept my uh this thing uh on continue so you know so i just kept continuing my paying so why because then i will go to the another device which is not giving me reply i will try to find the solution and as soon as i will start to see the replies coming from that device it means it is uh there is end-to-end connectivity so that's why we keep minus the options that will just keep pinging that device all the time then we have some another options minus and question mark then we have minus a resolve address to post name first of all i try to ping my own computer which is on 192.168.3 so it is give me giving me a very simple reply and i i'm totally blind at this time i have no idea this reply is coming from which device what is the name of device because we know these devices by name so minus a option basically going to give me the information about the pc as well so the name of my computer is cyber pc so just by looking at this name i will know that okay this computer this belongs to this so you can have like in a real production environment let's suppose you have four or five servers uh in your id closet and then you can ping those devices but you have no idea what that server is for let's suppose one server is running uh your hotel management application another server is running uh sql server server another one is running let's suppose your finance application so with because you have given some kind of name to this i'm sure okay let's go uh some another option [Music] um then what else this is the number of uh things we can send for example uh i want to send just one ping just for some purpose oh sorry uh you have to mention how many things you want to send after minus n as you can see it just said one thing okay so there could be some reason value reason uh the purpose that we want to send only one thing so this thank you can we use can we use this uh specific one for unless a cabling issue i know that sometimes there's a cable issue and we we want to run the command for a long time to see if the cable is fully working is this the command that you would prefer as a network engineer to use or the other ones exactly this uh ping minus and um you know there is no any specific reason using minus n but the one that is most being used is minus t it will kept pinging and we can see like you know if i'll show the my internet connectivity right now if i try to ping minus t with the help of 4.2.2.2 so basically it kept on pinging and i can correlate with my ttl and times if there is any kind of delay i can see here okay can you explain to us sorbent for hyphen crystal how does how do you determine these ms what does this gives us any information if it says ms this much or ttl this much how would you i will not touch this ttl part because we are going to cover next okay so we will be specific to this time these are the time slots basically it's time trying to hit this device in this millisecond it means my first package went in 147 millisecond it hit that server and returned back again 147 147 it means my internet connectivity is so stable but as you can realize here it's something happened it hit 140 58 milliseconds it means some kind of application which is running in my background maybe it is taking some kind of data so this is one a very good method you know to identify your internet connectivity as well sometime you will find that reply is coming then there is no reply request timeout reply again coming done again request timeout reply is coming again request timeout so this is a very pure identification that there is going something happening in your uh uh with either access point or with the cabling or with the network interface card so this kind of troubleshooting you can do with the help of this paying minus t command clear thank you yes okay that's good then we have some another options these i'm not gonna tell these are so advanced [Music] uh then this is also very informative which is saying source address to use okay uh i think i have removed that so we have this uh a simple topology here we have a server and we have a host machine and i'm trying to send a ping but you have multiple interface cards connected to this host machine like in my case i have one wireless lan i have one for lan i have one for vmware one for virtual machine for virtual machine too so what if i want to ping this server not using my default lan interface dot but from my wireless lan then this thing will help us minus s which is basically telling me from which source you're gonna think so let's do this example here live let's suppose if i go to ipconfig slash all to see all of my ips and let's pick the ipv that's this one one line to one c 42.1 and if i want to ping i will type minus s with uh this as a source which is yes this one and i will try to ping my access point so this is going to be my source and this is going to be my destination but if you notice earlier i was trying to paint uh from the same subnet from my lan device basically the lan network interface card but this time i am trying to uh sourcing from the vm machine but there is kind of some let's say some requirement that i want my vmware to access my access point so you can use minus s option with the help of this um vm net ip address to ping this uh access point let's try pinging does it work or not as you can see transmit failed because my router does not have any information about this one but if i will do the same thing with the same subnet oh sorry and and the ip of my device is 100.3 this time i tried to ping as you can see the reply is coming because my whole access point has information about this subnet so i am changing the source before we had vmware and you can clearly see uh the difference between these two ips so i am sourcing from different location basically if i try to go some other options and i'm not gonna go do the demo for this one if you have ipv4 this is by default we will type minus four and in case of ip6 what if i want to ping ipv6 addresses you can use like my ping -6 and then this very long ipv6 address something like this and then you can pay this address okay so the demo for your paying section ends here if you have any question you may ask hello no we're good okay straight forward i'm not getting any reply so that's why i'm concerned that everyone is there or no no no or i'm just talking to myself okay that's fine when you don't hear a reply like that you can move on then okay that's fine well sometimes it happens that there is internet connect connection issues maybe i'm connected but you are not so that's why you know i just want some echo from you okay so the ping has uh we have done so uh and again this the i think for you guys you you should after this you know try to ping your own home network try to understand because you have such a good example right there you have so many devices you have a router at your home because you're gonna have to start with extreme basics like that to understand your even your home network that level of thing you think jss website try to ping it for a long time try to understand what's like you know the time things like that and after this you should be doing your own research you'll do a lot on things side because it's great to get started like this but again you're always going to be as a network engineer you're going to be using the same concept even in routing even in switching you have to do ping other devices for for you to do your work you'll have to do that from their devices as well but that's where i think you guys should start with the extreme basics move up to your home network and then after that when you start the packet tracers and all that kind of stuff and your labs you should be then using you know same same method same concepts in those type of devices as well okay so we come across some another uh error messages you need to understand one is destination host unreachable versus request time now most often you come across these errors so you must have an idea what what is the different difference between these two host unreachable basically when we are on the same network let's suppose in my case we are running 192 168 dot 100 dot x x means whatever the host with identification number you can do for one two three all the way up to 254 you can assign so if i'm trying to ping some id within this subnet i'm going to receive host unreachable it means we are on the same subnet but maybe this computer is maybe dead uh maybe shut down or maybe there is cable issue network interface card issue okay so you are going to receive unreachable request timeout when you're on not on the same subnet and this subnet does not exist in this domain these kind of errors you're gonna receive and we will discuss you know do don't need to worry about this we will go a lot in detail but we'll in a router and switches we will be pinging you will see several kind of errors there and these just i am giving you i just uh fly the overview the difference between these two then this packet loss uh it gives to gives you the information how many packets have been lost like in this case you can see two packets lost it means there is kind of some issue in your lan environment if you are thinking lan environment if you are bringing your device that is in the your same lan environment then i'm sure this is the problem with your cable either with the cable with your network interface card or there's some kind of loops happening in your local area network similarly if you are trying to ping the google that is not in your domain if you receive this kind of errors like as i said earlier reply is coming then there is request timeout then reply is coming request timeout it means you have some kind of serious internet connectivity is going on in your uh your working environment the other tool we're gonna use is the trace tracer tool also known as trace route 2 and what it does pressed out is a network diagnostic tool used to track in a real time the pathway taken by the packet on an ip network from source all the way to the destination in a very plain english what does it mean we have host a here and some host b is somewhere for location we have multiple routers in between and we will use this tracer tool to find out how far away this device is from us so in this case it's gonna give me reply three one two and three and then it is gonna hit that destination so the tool is very simple it is but it is very useful why let's suppose your this router is down first you will do ping ping will tell that host is unreachable then your second tool which is tested is going to be very handy when you will apply a tracer it will hit this one it will hit this interface because this is still working only i am talking about this interface at all so immediately the reply will come from or will say the two it means after reaching the second device we cannot go beyond so it means it is a clear indication that we have somewhere the problem lies somewhere inside in this router and in this boundary so let's do the uh the demo for the present so let's go to the again command prompt i hope it is visible the command program yep okay so you will type tracy rt tracer and the desired address let's suppose uh we want to trace out how many how far job skill share server is from us that's my basement right there there you go but this is very simple it's gonna take so long so i will go to some another option so here you can see this is 192.1600.1 which is my gateway yes my gateway or in simple term is my access point the router then this router is connected somehow with the isp maybe the router and this is going to the interface of this router then this router is connected with some another router on this interface and this is going to be the ipads for that so it went how for three hops one two and three now in a real world example you would use something like this and cameron you can correct me if you have a big building with four floors four floors each have its separate switches and let's say on the bottom floor something happened and machines are not able to go outside and you would use some type of command like this like tracer which then you can you can find out which switch in that floor is then having an issue right or a router just want yeah yeah you can continue yeah and another example that i can give you guys that sometimes companies are using a you know two connections for companies because you don't want to rely on one connection so if one com one goes down and let's say one is a fast connection another one is a backup and a slow connection sometimes a lot of people complain oh we are we can't use internet uh it's so slow and this way you could use a tracer to find out if your connections are actually going to the slow router or the fast one yeah you could find that because of these commands just keep this in mind there are different scenarios you can use this command like that okay yeah that is very great example thank you danish another thing i want to clarify here uh just punishments and the switches sometimes you know the switches they are the dumb devices they don't have eyepiece okay so sometimes the tracer will not work for these switches if we have let's say we have multiple switches connected like a daisy chain fashion and i will run tracer command from this machine to this destination it is gonna tell me you are one half of it because it will not consider these switches as a routers because they don't have any kind of ip connectivity and it will not consider these like the pumps in the wire if we have the routers here then yes this is three hops okay but these days switches are intelligent enough you can have switch plus the router inside that device it is works as a switch as well as the router then in that case if we have these things then it will show the three house i hope you get it yup thank you that was a good example because some people may not know that yeah you can when you when people ask you about that oh didn't i hear that there are switches on layer three that's what he's talking about that the new one comes with that capabilities it's not that the whole switch is like a router it's just a capability is being added to it yes right okay then we can go in detail about pressure and the same method where we did with the ping preset minus minus and the question mark and you will see there is not much going on in the tracer as opposed to the paint so we will be using only this i think yeah that's it and then we can use the source address the same way that we did for uh um in the paying but this will go for the ipv6 only as you can see uh i did tracer and i did www.jobskillshare.org and uh sorry it has a typo in there uh paste it then job skill share dot pause yeah as you can see it is taking so long here why because it is trying to resolve the dns the name of that uh this this name of this host machine so every time it hit this device it's trying to resolve the name this we don't do not want so what is the solution for that you want to process press it uh very fast with the help of minus d and it is clearly mentioning here do not resolve address to name so the same thing we're gonna do with the help of minus d command and you will see the difference you can type minus the option here and now as you can see this is much more quicker than before now we can clearly see how far jobs can share or this commerce another thing very important here did you notice these statics whenever you come across the static it doesn't mean that this device is not responding this device is responding but basically there is kind of firewall device is installed that is denying these icm clippings uh to hit this uh host machine so this is for the security mechanism so since you know this uh job skills here i think this is located in somewhere in united states and it is far far far away from us in pakistan as you can see there is a lot of routers basically it is all routers these things can we say that now it it took some type of path or a best path or is that a correct term to use exactly you can use uh for example you can uh if job skip chain has multiple servers okay then it is not going to use always the same path maybe it will do some different path it find it better than the other one so from here you can also see that sometimes you are hitting less routers than before okay okay sorry i'm eating yes so i just uh i press ctrl plus c uh to disconnect this one because it is taking so long so this is tracer command and as i said this is very helpful tool um when you have multiple when you have multiple devices in between like routers and we have no idea which device for example this one is uh disconnected or shut down then we have reachability all the way up till this if if i'm trying to pick from this so this is how i'm going to uh imagine that we have the problem somewhere in this powder so that's is where pressure tool is being used and this is very helpful in your day-to-day uh working net stat 2 uh you can consider this is like the monitoring tool but in the low end like in our computers we can run that stat tool and basically what it is the netstat is a command utility utility used to display current network connections and the port activity on your computer what does it mean it means uh whatever the connectivity or the connections is going through from from my computer or coming to my computer i can see what ports it is connected with uh whether i'm using chrome what other applications like we have discord we have skype what kind of connections are connected on my computers right now we can take a look from using netstat tool so let's go into the demo let's clear this screen if i will do simply netstat without any options as you can see it is saying active connections what protocol my connection is using tcp what is the local address of my system 192.168.100.3 and it is showing me the port address which is i told you this is the random port and it is not well known it it is the state is established and is it it is connected with the foreign address which is which is located somewhere far from my computer and this is the ib which is going to be the public ip and this is connected with that triple a3 um uh maybe this is like the well-known port but it is very slow again the problem is it is trying to resolve the pose or the dns information so what is the remedy the same way we can go nut step minus question mark and then we can come here display the address sorry displays addresses and port number in numerical form let's try again with that minus n and hit enter as you can see very quickly processed which were it was going to take time here so we can see the same information the connection is established we have multiple local connections uh from the different ports going to the well-known ports like 443 is a well known 80 is a well-known port this is secure non-secure 443 is secure and 80 is non-secure now i want to go one step further and i want to convert these into the names i don't want i don't know for example i'm very uh at the very basic level i have no idea what vote for three statues so further you can dig deep and check net stat and type minus question to see which options will enable that for us uh now we have fully qualified dna domain names as well let's try this minus b this place the executable involved in creating each connection listening port let's try this one minus d and this minus the option basically is giving me information not only uh what kind of protocol i'm using but also what kind of application i'm choosing so you can imagine how this could be yeah this could be a great way to find out if somebody is complaining about you know hey i i'm having a lot of issues my computer is very slow or my computer is being like you know doing weird stuff but they can't see it right this could be a great way to actually run this command and find out if there's a background application that's doing a lot of stuff from the command line exactly and somebody raised this question as well earlier that uh um if i disable or one port out so as you can see clearly here is zoom xz zoom what kind of protocols are support number it is running as a source and it is using the well-known port https so it means zoom is using a very secure connection sorry if uh i'm getting ahead of myself but what's the difference between establishes is i think direct but close weight and time weight okay so establish is basically this is i'm connected with okay this connection is currently established and these are previous connection which is waiting to close and similarly time wait is it has already expired like it's wait like when it says establish you're actively in that session yes like it's expired yes it is expired this is like you can say consider it like uh the session that a long ago it happened now it is waiting to time out in short yeah so your computer your computer is going to keep some kind of you know connection to close down everyone just immediately close everything do you remember we we talked about the sessions yeah like if the session goes out yes there are several sessions going on and some of them are waiting to time out okay okay and as i said before it was giving me information about just the port numbers uh if i'm a newbie i have no idea what these ports are i can enable this switch minus b uh which is basically going to turn those into the name https along this is also going to give me information on what is going to be my new favorites that's great and also this is going to also tell me um okay what kind of application is connected [Music] okay let's head over to another switch if we can find something [Music] then minus a is going to display all connections and listening force even that is not being used so let's do let's add with the help of minus a so as you can see this is established these connections has been established but just take a look these are the listening ports means my computer is ready to listen on these ports these all but this is not a good security practice by the way we need to close these ports if these are open so basically it is telling me that these um multiple uh ports are open and if you want i can connect and i i'm listening on these port actively okay then what else do we have something we can use uh but just for i some ports are listening uh they're open for normal like connections for your computer to work with other computers and you know your own local adapter have when you see 127.0.01 that's a loop address right so you you don't that's not like your open address it may be using just your own adapter to listen to things that is happening inside your computer so yeah make sure you guys don't go and start blocking everything you know something will not work on yes this is just for the verification you know we can check what is happening and what is going on in our network some rope pc may be connected so you can identify directly just by taking a look of the ip ip and then you can ping and you can resolve that ip to identify what host basically that is okay other than that we have this um we don't use this software but let's try this one net stat minus f uh basically it is going to resolve the fully qualified domain name just like in case of job skill we have www.jobskillshare.org so this is called fqdn so as you can see here uh maybe somewhere i'm connected to amazon or i think this uh skills here basically posted on amazon so as you can see it is giving me a fully qualified dn domain name here okay then um oh yeah that this minus e displays the ethernet statistics uh if we want to see how many data or the bytes have been received or sent we can just check from here as well very quickly just by putting minus e option and this is also very good information like how many unique house packets are being sent uh from your lan interface card how many bytes are sent received and sent how many non-unitas packages and how many have been discarded or how many are in the error state so this is also could be a very helpful piece of information so i think this is enough for the next set we have some other tools like our ipconfig uh sometime we have some dns issue with the help of ipconfig flash dns you are going to flush your dns information and you know i am going to discuss this thing a lot in your week 2 module then every computer has some kind of mac addresses or even every network interface card that is attached on your computer has different mac address it has different mac address it one has different even your virtual machine has some kind of uh virtual electrical interface card which is having different mag address and these all will be unique so to just to identify to get those you very quickly you can go through this command and then we have r uh r basically will show how many computers um your your host machine has learned by the way how many magazines it has learned maybe you're in your lan environment we you know in the r the arp is a complete chapter as its own so we're gonna discuss art a lot in detail and the ccna switching section is totally dependent on r so what i was showing is we have the landmark environment we have let's suppose 100 computers connected in the same environment with the same subnet this your post or computer will have the information about these all host machines in using the help of our protocol then we have ns lookup we have one dedicated section uh talking about nslookup we will go a lot in detail system info is going to give you the information about your computer and i will i will demonstrate this one as well route print is just like if you are familiar in a routing environment we have command show ip out which is going to give me information how many best parts do i have so in command prompt you can have routine my uh this greater the sign if we use in the command prompt this is also very handy and useful command for example if this is the system information uh that is very verbose information and we want to save this information in my text so you can use greater than sign and you can save in somewhere in your computer to send to some your friend or some your boss or colleague in format of the notepad then we have pipe mode uh so i will give you a demo then you will have a better idea about this so let's very quickly i'm going to give a demo about these ah each command but i'm not going to go a lot in detail because we have already covered so many concepts so you will be confused i will clear the screen so ipconfig very basic command and you will use a lot it will give you the information about what network interface cards you have like ethernet adopter i have on a vm pair which is virtual environment this is also virtual environment and this is my physical local network interface calls uh then we have a wireless and then these are uh can say the what are the ip addressing i am using on my relevant uh network interface card like on my lan i'm using this kind of ip 192.168.3 for my wireless lan uh which is not connected it is media has been disconnected for ethernet adapter vmware and using these kind of addressing so very quickly you can go over and check the ip connectivity then you have ipconfig flash dns so basically if i will hit enter it is going to erase all dns information that resides in my post machine which i do not want because i want to keep dns information and for the dns we have a dedicated section in week 2 module again then the we have get map if i simply press or type get mac and hit enter it is very quickly going to give me information about the mac addresses but the problem is it is not giving me what this physical address is connected with which interface or which nic card network interface part to get that you type get math and type slash b hit enter i will just expand this one here you can see my vm virtual is using this physical interface card uh physical address or the mac address my local area connection or lan card is using this uh physical mac address and my wireless is using this uh method so see how quickly uh you just uh get the knowledge about the mac addresses of your network interface cards so this is also some kind of very handy command then we have our it comes with a lot of options let's do with r minus a and it is going to give me the information uh what other host machine my computer has learned so far so in this case for example if i give you information this is my gateway and this is a physical address that is correlated to my access point so instead of resolving this mac address it will send r and it will receive our deploy and then i will get this magnet it already keeps this information saved in its arc table why when i want to reach my access point it will go directly to mac address and just go directly to the access point instead going through some another process which i am going to discuss in subsequent lectures as i said nslookup we have one dedicated section for ns lookout but just um give you information what it does if you hit ns look up it is going to give me information what my gateway address is connected and if i want to go a lot in detail i can go like set type i want to know information about the mail exchange server about some let's suppose like www.jobskill it will show me my mail server basically uh have uh this uh name of the server is ns1.cloudfit.com so this is going to give me the information about my mail exchange server so not to worry about if you are not getting this at this time because my intention is just to make sure you have this command in your toolbar and this is we gonna discuss a lot in detail in subsequent videos if you want to exit just type exit and you will be in the command prompt again then the other tool we have system info which is going to give me the purpose information about my computer just type system and info as you can see how quickly it is going to give me a nitty gritty detail about what my computer is what is the processor type multiprocessor i'm using microsoft corporation the operating system version and the build what kind of operating system name is windows 10 pro and there is a ton and ton of information then we have route print if you do route print so this is just like um ip routing table it is having information about the multiple gates for example and which is the best one i am going to route from this so this table is going to give in and give you the information about that and wherever wherever you will see the network destination is 0.0.0.0 it is nothing but your default gateway just you know i don't want to discuss a lot this one what is your fault uh i default route because you will be confused then so keep it for the routing uh topics then i as i said for example we have system info this all information i want to send using email address of course i want to save this information somewhere so for that we can use the greater than command and we can type just over here we will use the command system info then greater than sign and where we want to save this file with the what name let's put the name of file is uh system info dot text and i will hit enter and if i take a look of directory ah there's so much going on but by the way if you will go into c windows system 32 you will find sorry you will find this file system info.txt which will be having the information about your system information so this is how how very quickly you can save whatever the command you are going to give and it will be saved in this text notepad with the help of greater than sign so this is the syntax then the last command is slash more and this is also very helpful and handy like in this case if i type directory and you can see there are so many things so many pages uh it is going through but i do not want this behavior i want page by page so what you can do you can type directory then pipe command and more now you will hit enter you will see it is gonna go page by page okay so our demo time ends here the next part of this training we will use different command line videos from our practice lab that we use in our system so if you want to do a practical practice just like an instructor you may want to get a membership on jobscaleshare.org especially premium membership because you will see that we will be jumping around in different courses because we have these type of modules inside courses for example in comptia there's a full command line set right here that you will be working on hands-on so we are going to add some of the videos from different modules over here to enhance this video for your learning thank you the task kill command and here in this video we're going to show you this command so if the screen is not clear so first run the cls and this then we're going to run the taskil test list came in so for killing any tests you must know the task and the list of that all the tasks from which you want to select any of the tasks to kill so before that you run the task list came in and here you will find there are a lot more tasks that are running because definitely when you're using operating system or any operating system there are few more services running on the background that is allowing you letting you to use the resources and doing your own daily operations so here we cannot easily see all the tasks here so we're going to type the tasks list and we're going to just type the notepad here to show that how the test is being added so as we open the notepad you can see the notepad is now came under the task list now we're going to type the task kill because we're going to shut down we we're going to kill their tasks that is running in the notepad form so for that we're going to type task kill space for slash f f means forcefully because we don't need little laps in between to kill the test that's why we are adding this argument in space forward slash im notepad dot xc so it will do what it will kill this task and close this application and whatever it is sometimes there are application in the test sometimes there are services so it will terminate and yes here you can see the message that tells that this process with that pid has been terminated now after that if you again run the test list command you see here there's no notepad file there's no notepad task here and also you can kill the test by typing the pid the process id of that specific task so you can type 6740 any specific task for the testing you can kill by typing the id and here this is the cmt the same cmd which we are using so if you type that it will close the cmd and there you go the cmd is closed and that's how we can check how it kills the task by using the pid the process ids so let us open the command prompt again to further explore this task command now here if you want to explore in the same way and want to know other arguments that you can add with the task it'll come in so simply type task skill space forward slash question mark and it will show you other arguments and additions that you can apply with this test skill command exercise one test studying the gp update command and here in this test video we're going to show you how this gp update command works so here as you can see we have the command prompt on the screen it's visible and here if we type the gp update without any parameter so you'll find that it will update will clear the cache from this clan machine to the active directory domain controller machine and it will just sync your machines policies local policies with the group policies so you will get this message once the command is executed that it is done successfully then if you add a parameter forward slash force so it will do all the work with the force with in within no matter of time in quickly quick way so if you want to do things in a quick way in an instant so you can add this forward slash force argument with this command and then execute let's say if you want to run the gpupdate by default user and the computer policies are applied so you can choose to apply either user or computer so you can add another argument this forward slash target column user so because the policies are up of two types the computer base or the user base so here you're typing that with one new policies on the user level so all the policies that were configured and altered on the user level has been synced and applied now the default number of seconds to wait for the policy processing is 600 seconds so you can remove this with time and add another argument with the numbers and reduce this wait time for the gp update so it would be simple you can type gp update space for slash weight and then you can type the number the time the seconds on which you want to reduce this implementation of the policies so in that way in the in this way you can type db update space forward slash weight column zero so we are reducing this 600 seconds to zero so it will it won't take this much seconds and time to apply policy now let's clear the screen and if you want to further explore this gp update arguments so you could do the same thing as you did with the previous commands like space force last question mark so it will show you other arguments and additions that you can add the keywords that you can add with the command and explore different features and get benefit in different ways by using this command the gp result command and this is another command that helps you in the group policy section and here for the set of policies which get applied these policies are about how to the application programs resource space on the network and the operating system behave for the particular user or a computer so these policies can overlap in nature and this gp virtual command generates the resultant set of the applicable policies after considering the overlapping so here in this video you're going to learn how to use this gpu result command and to use the gpu little command to to see the functions you will need to follow these steps that we are going to show you so if you type gp result space forward slash r so it will display the rsop summary data of the policies and the user and the security groups so you can maximize the command prompt window if you further want to see each and everything and once you realize once you find out all the stuff and the policies that are applied and working right now so there's you will find there's a lot of stuff and a lot of things a lot of policies applied on the user level on the computer level so you can easily find out the difference and once you get this output from the gp result command you can also display all the information about the group policy and this work by adding another argument with this gp result command now here the machine is disconnected and once when it happens click to the reconnect button and it will reconnect the machine as it were connected on the same moment at the same point so let me scroll up and reach to that point where we left and here i'm going to run another gp result command with another argument and that would be false z so it gonna do what it will display all the information about the group policy and let's press enter to execute and here you can see the output of this command spans through multiple pages so you need to scroll and read the information and you can also find out the details from the screenshots so this is the output and it tells you that each specific policy that is applied on each object in your environment in your group policy so once after getting this much detail about the group policy and actually this is allowing you let's say for example if you applied some policies on the machine and the machine didn't get that policy it is not implemented at the moment so you can run this gpu result forward slash z command and it will show you which policy is being altered and configured for which object so there are a lot of benefits and a lot of different you could say tools you are getting by learning these commands and you're learning different dimension and directions through you can fix and troubleshoot the issues in active directory now once getting this much lengthy output you can clear the screen or you can run another command that shows the details of a remote computer you display the policy details of a remote computer so you can type gp result also as space that specific remote machine and then follow slash r so it will provide you the detail of that remote computer policies that are implemented on that specific machine so you can explore you can find out the policies of another machine of another remote computer within your domain within your network by running this command the net use command and this command is used to connect your computer system to the shared folder or drive on the network so by using this command it's possible to have the direct access to such shared directories and treating it as it as if it were local directory or drive so there are different variations with this command which we're going to show you later in this video so basically in a simple way you can type net use command to view the existing network connection so you type net use space z column so you will start seeing the shared drive and there you go the command is successfully executed and you have currently this detail within this network drive command now you can also map a network share or drive or a specific drive letter on your system so you can use netnet space used space x column double back slash speed live 8 1 c dollar c is a c location also is persistent column yes so when you type this value so the value yes means that the mapping will be available when you log on to the system next time and when you go with no that means the mapping is limited to this session only so if you minimize the command prompt and want to see go to the file explorer so you're going to find this x drive here on your system on your machine and you go with yes so it will be available when you relog to your system again now if you want to delete this network drive because if you don't need that drive and the time and want to delete that specific drive so for that you have basic and simple argument of this net use command that you can add with it and run and here you need to specify the letter first so you can type net dash use dash that specific letter which you need to find out from the file explorer so it's up to you if you remember so don't need to open the file file explorer type net space use space x column space for slash and delete so this argument will help you to delete your specific network drive that you just mapped but now you want to delete that one and you will if you want to find out that thing so you can go to the file explorer and want to explore other arguments of this net use so simply type net space use space for slash question mark so it will show you that there are arguments in the keywords that you can use along with the net use use the net user command and this command allows you to perform user account related tasks on the computer so this command allows you to create new user you can modify the user account related parameters and this account has various parameters to it so each one of them performs specific tasks so using this command you can manage local and both domain based user account so let's open the cmd in type net space user so this will show you the list of user on your local system so right now we're going to use it on the local system and type netspace user and there you go show the list of all local new users you have in this machine so for getting the list you just need to type that space user it will show you then if you want to view the information about specific users you can type in space user space that is page that specific user which is right now administrator and if you want to know the arguments so run forward slash question mark and right now i want to see the specific user so i type netspace user administrator and now it's showing me what the information about the specific user the administrator and all the permissions password things and account expiry and other workstation allowed and lost our logon allowed and local group membership global group membership all the basic information about the user it is showing here after executing that command then we can simply find out other things and we can manage account credentials so if you want to create new account by using the net user so we can type net user space any name like we're using wilson and then just directly type this exact password that you want to set then space for slash add false time and then column all so it will directly in an instant create the account and when you add false let's add parameter it adds the user account and the user is configured to log on all days of the week so on the above we miss the remaining arguments of this comment that's why we see we saw this error now we're going to use these for slash add and then for slash times call on all so now it is the proper way to execute the command in order to create the new user and the command is successfully executed as you can see the message now you can recall the net user come in and just see the list of user and there you go you have the wilson in the list just added after you create it and if you want to delete any user simply type net space user space that specific user then space false and delete so it will delete the newly created user or you can delete any previous user you have on your local machine and then again recall basic net user command i will show you the list and you won't find that user that you just deleted so verification is a good thing you need to you always have to verify after doing things so there you go there's no entry of the wilson here and we already showed you how to explore its other arguments and keywords that you could use with the command to do different things the command and here in this video we're going to show you different functions of this copy command and how it is useful to copy any file any text file or any file because you are familiar with the gui environment how to copy things and it's so easy peasy to just right click on any file and copy things so first let's open the command prompt with the administrator privilege and type space null space dot not dot the greater than symbol then abc text file that would be any file you have in text so this came in that's what it's an easy to create a text file using a notepad but it it's a bit tricky because you're doing in a command prompt and if you then run the diur so you will see the file now after creating the file you can simply just locate the file in the directory and then type copy space that specific name in the location where you want to copy that file so it would be like c column users and it would be whatever whatever you like whatever you wherever you want to copy that file and it will be copied and if you add this forward slash y extension so when you turn a copy to a file to destination the same file exists but you will be prompt with the warning and if the file exists in the same directory so you can still override without getting the warning so if you want to override the file on the same specific location so you need to add this forward slash y parameter so this is suppressing the prompt for confirmation to overwrite a file on that same location so here we're going we're going to copy the same file on that same location and here we are already adding forward slash y so it didn't ask for the confirmation for overwriting now we're going to if you want to verify and explore other arguments such as typefall size question mark in the x copy command and this command is useful to copy the file as well as the directories from the source location to any specified location and while copying this directory this command also copies the subdirectories of that directory and as well if it's present so to performing to experience this command on the cmd first let's move let's move to the practice labs resources but practice labs portal in here on the command prompt we're going to type x copy space forward slash y and here start dot text space c column backslash user this would be the location and here it will copy the directory as well as the subdirectory and it shows that it has these directories now you can see that one file is copied abc.tx along with this directories so in this way this command is simply allows you and enables you to download the file along with its directory now we're going to now copy these folders that have multiple directories within so if you go to the c and create the new folder let's say p labs and now if we create another folder in that folder so we create the text file here within this folder subdirectory it would be so we're creating another file text test.2 here for this command now you can see we have two files within this p-lab folder and then we're going to copy this p-lab directory to another location so we did the same we type x copy space c backslash p lab and there we're going to provide the destination location and then put forward slash e so you can see the both files are copied along with the directories along with the single directory and if you do the dier space download to see the download directory so there you go you found the both files here so in this way you directly copied the internal files of that folder to that specific location right so in the same way you can you wanna if you wanna explore this command just tap forward slash question mark and you will see and you will find out different arguments that you can add and here in this command we're going to show you the robocopy command and it copies the file data and all the necessary parameters have to be passed in the command itself so the source directory destination directory and file and whose content are to get copied like details are specified so the robocopy command will keep the original file and create what a replica of the same at the specified location so in this test we're going to show you how to use the robocopy command in environment in the command prompt so let's start with the cmd and here as you can see in the previous command we already created directories with the x copy command video the last one now here let's scroll up and type robocopy first clear the screen and then we're going to type the robocopy space downloads space c column backslash users so this users would be the specified location and now it shows this data this detail and it shows what that is created the replica of the original file and it copy on the content in the search directory the destination directory and the file the content is just copied so the details are specified and it kept the original file and create a replica of the same at the specified location so this is the benefit of this robocopy command and there are few other and various parameters of this command we have and if you want to see if you want to know about those parameters just simply do what type robocopy space forward slash question mark and then execute so it will show you the other rest of other arguments that you could use with that command to do different things and using different environment in different scenarios so it will show you the rest of other arguments here on the screen so that's it for this video stay with us and thanks for watching now this is great knowledge so far after this of course there's this is not an ending skill so you can go to google type cmd doc and you will see this microsoft link click on it and then you can use so many other commands there is available inside for you to practice so you can create some batch files after this so if you feel like you're really good at using these commands now then go and find some more commands that can help you with your job or your future skills but try to get into script and then once you get into script and you will be able to use two commands together maybe you want to copy one command and then do something with it delete it later on so create some batch files these are the scripting you can do on cmd so create something like that where you can actually achieve more out of it and that's where your mind will start to accept advanced learning and the more you get into this stuff the later on you're going to do a lot of advanced stuff uh in devops or maybe you want to become an uh a sys admin where you have to work with a lot of partial and that's where things can go uh into that so maybe you can start with the echo command where you can start doing that batch files and everything as you can see here there is some information about it so you can use it there's examples out here and have uh you know um a go with this because this is really going to help you thank you so much for watching this don't forget to subscribe to our youtube channel to see more videos like this
Info
Channel: Jobskillshare Community
Views: 974,819
Rating: undefined out of 5
Keywords: help desk, job skills, top it job skills, it jobs in usa, help desk career, how to start it career, find jobs in usa, help desk job interview questions, microsoft it career, job related skills, azure courses, help desk courses, systems administration, how to start helpdesk career
Id: qnXe1gecux8
Channel Id: undefined
Length: 198min 31sec (11911 seconds)
Published: Sun May 15 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.