22 Essential Linux Commands (su, PATH, PIPING, cat, ps, bg, jobs..)

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2025

ความคิดเห็น • 232

  • @stevenstaubach1061
    @stevenstaubach1061 7 ปีที่แล้ว +284

    Just a quick note for everyone: USR is not actually "user" and does not contain users like the windows directory does. It stands for Universal System Resources, containing various stuff for all user programs, but the actual "user" directory is "home" for non-administrative users where as the root users or super-admins are located under "root".

    • @prateekgurjar1651
      @prateekgurjar1651 6 ปีที่แล้ว +13

      Steven Staubach i was looking for this comment

    • @maxnicely8926
      @maxnicely8926 5 ปีที่แล้ว +6

      I don’t believe this to be completely true, and I thought the actual saying was UNICs system resources before Linux and that the original intention was to have user system resources under usr. So essentially usr doesn’t mean anything and people can feel free to call it The User directory

    • @wanderingfido
      @wanderingfido 5 ปีที่แล้ว +2

      cd ~ is unnecessary, just 'cd' will change to the home directory. cd - will go back to the previous directory, it probably reads the env var $OLD_PWD to do so. Also, if you only partially remember the name of something you can use file globbing to change to it. This is an example: cd music/bands/u2/albums/*tree/

    • @divinealien7620
      @divinealien7620 4 ปีที่แล้ว +1

      thank you

    • @robinaugustine5998
      @robinaugustine5998 4 ปีที่แล้ว +2

      Nice info man

  • @billseward2274
    @billseward2274 3 ปีที่แล้ว +7

    I wanted to compliment you on this video. I used Unix 30 years ago, but it’s been DOS and Windows since. This was the refresher info I needed to get moving forward on Linux. Thanks.

  • @bigg3694
    @bigg3694 ปีที่แล้ว +2

    Much appreciated. Extremely helpful video.

  • @sashabalmagia6969
    @sashabalmagia6969 5 ปีที่แล้ว +8

    This guy is seriously amazing, love his style of teaching

  • @SamsonLeonVA
    @SamsonLeonVA 3 ปีที่แล้ว +7

    This is a type of video for which I wished for a double thumbs up button

  • @fahad203
    @fahad203 4 ปีที่แล้ว +7

    This vide was beyond useful and simply amazing. Thank you for taking the time to build a course like this. Very direct, concise and very well put together. Great content, hope you keep making these videos. Invaluable to someone like me

  • @duckiedx
    @duckiedx 7 ปีที่แล้ว +7

    Your videos are super helpful, educational, and easy to follow. Thank you!

  • @thirumala_reddy
    @thirumala_reddy 5 ปีที่แล้ว +2

    Short and sweet info with limited span of time... Super bro

  • @AliYavari110
    @AliYavari110 8 ปีที่แล้ว +6

    the best short training.... well done and thanks.

  • @miteshparekh6820
    @miteshparekh6820 7 ปีที่แล้ว +3

    good visual examples.. patiently explained !!

  • @z8669zzz
    @z8669zzz 2 ปีที่แล้ว

    even using both UNIX and Linux for some time, always good to review. Thank You

  • @babuaz8812
    @babuaz8812 3 ปีที่แล้ว +3

    "root" directory is with front slash "/" not backslash "\" which is used in windows OS

  • @muha0644
    @muha0644 4 ปีที่แล้ว +7

    3:04 it's not the user directory. HOME is the user directory
    USR stands for Universal System Resources and it has lots of important system files

  • @sambocastello1748
    @sambocastello1748 8 ปีที่แล้ว +1

    Good video , good structure to the lesson. Two thumbs up

  • @gordonokeefe1433
    @gordonokeefe1433 4 ปีที่แล้ว +2

    Thank you for the wonderful presentation. I learned a lot.

  • @rajeevchoudhary2420
    @rajeevchoudhary2420 4 ปีที่แล้ว +1

    The best video ever, thx for adding information.

  • @vickypatekar9532
    @vickypatekar9532 5 ปีที่แล้ว +1

    Thank you Vinit Sir for Sharing such a Wonderful Knowledge

  • @asadanees781
    @asadanees781 5 ปีที่แล้ว +1

    Nice video to learn quickly. Thanks

  • @AnanthaLakshmiAcademy
    @AnanthaLakshmiAcademy 2 ปีที่แล้ว +1

    This is quite helpful.Thankyou

  • @cyberdark77
    @cyberdark77 5 ปีที่แล้ว +3

    Nice video. Subbed.

  • @linuxteachinghouse6820
    @linuxteachinghouse6820 4 ปีที่แล้ว +1

    Good Information in this video for beginners I appreciate your hard working

  • @umersaeed6032
    @umersaeed6032 8 ปีที่แล้ว +11

    Well i've learned a few commads a i never paid attention to like bg fg, Good job. Thank you

  • @ephraimshofar53
    @ephraimshofar53 8 ปีที่แล้ว +42

    1:09 to skip straight to the main course

  • @vansantsam
    @vansantsam 5 ปีที่แล้ว +1

    Good job.. a very useful (but also dangerous) command is "dd" which just moves data, (entire or partial data from files etc), Very useful if you want to clone a hard drive - example (sudo dd if=/dev/sda of=/dev/sdb) this would clone the entire drive (where "if=" is the input file and "of=" is the output file). You can also designate how much data to move per cycle - the default is 512 bytes but you can designate something like bs=1M where it would move 1 megabytes per read/write.. Just to be on the safe side - boot a linux thumb drive so that none of the drives being used in the cloning process are active or mounted (not really necessary but just an added precaution).. Just make sure that the drive being clone is smaller than the target drive (resize partitions prior to cloning) or the target drive may run out of space..

  • @dr.ragill2752
    @dr.ragill2752 5 ปีที่แล้ว +9

    Its indeed the simplest way to learn Linux for beginners. Please make more videos especially for those who may want to deal with big data comes from RNA-Seq. Many thanks!

  • @akashgupta6254
    @akashgupta6254 6 ปีที่แล้ว

    Very useful video...I learn a lot of things from this video.

  • @prakashthakare1727
    @prakashthakare1727 5 ปีที่แล้ว

    best illustration of linux commands.

  • @Tofaeal
    @Tofaeal 5 ปีที่แล้ว +1

    Amazing video thank you sir

  • @vdlha5818
    @vdlha5818 7 ปีที่แล้ว

    Excellent beginner's video. Well organized. Thank you :)

  • @shabbiranower8358
    @shabbiranower8358 7 ปีที่แล้ว

    Excellent!!! Thanks a lot for making easy for beginners.

  • @luizgomesdev
    @luizgomesdev 4 ปีที่แล้ว +1

    Great man keep up the good work

  • @PamirTea
    @PamirTea 6 ปีที่แล้ว

    Love it. Very nicely explained.

  • @lavieestbelle6068
    @lavieestbelle6068 5 ปีที่แล้ว +3

    Thank you so much, you made my lesson easier to understand. 👍

  • @uzair190
    @uzair190 6 ปีที่แล้ว

    I really love the way, you explain ! Please make more videos! Please please !

  • @itexperiments1383
    @itexperiments1383 5 ปีที่แล้ว +1

    cool video mate!

  • @MyGardenNewsForYou
    @MyGardenNewsForYou 7 ปีที่แล้ว

    Cool, very useful. Keep the good work continue. Always try to explain everything in the command.

  • @tanvirjalilaiub
    @tanvirjalilaiub 7 ปีที่แล้ว

    wonderful con-sized video for quick learning.

  • @G360-w3m
    @G360-w3m 7 ปีที่แล้ว

    Simple.Yet,useful

  • @dharvell
    @dharvell 3 ปีที่แล้ว +1

    "/" is just "slash".
    "\" is back-slash.
    That said, the top of the directory structure is "slash", not "back-slash".
    At 3:53 - "su" is "switch user", not "super user".

  • @WarumlinuxbesseristDe
    @WarumlinuxbesseristDe 8 ปีที่แล้ว +46

    Backslash is \
    In Linux, the root of the filesystem is / not \

    • @artihlec
      @artihlec 6 ปีที่แล้ว +1

      Yep, do not confuse the backslash (\) with the slash (/) or forward slash.

    • @johncherry108
      @johncherry108 6 ปีที่แล้ว +3

      Unix has been around for years - since the early seventies. It actually PREDATES Windows/MSDOS.
      Unix and Unix-like operating systems use the slash to indicate the root directory and to separate directories in paths. Presumably Microsoft decided to be different by using the backslash.
      The confusion is caused when people think that the backslash is somehow 'normal' and just refer to it as a 'slash'.

  • @shrestianand2356
    @shrestianand2356 7 ปีที่แล้ว +1

    Thank you, its really helpful.

  • @lifestyle.guru007
    @lifestyle.guru007 7 ปีที่แล้ว

    Nice Explanation .
    Looking forward for advance commands in Linux .Kindly do explain that too.

  • @Praveenkumar-kk6ge
    @Praveenkumar-kk6ge 6 ปีที่แล้ว +1

    Great video

  • @harisrasoolbakhsh6896
    @harisrasoolbakhsh6896 6 ปีที่แล้ว +2

    Thank you so much sir .... its really help a lot im beginner in Linux now tell me what to do in class their are a lot student teacher wont contract each student im little bit week in Linux .... God give you health and wealth too .. God bless you sir

  • @DarrensTechTutorials
    @DarrensTechTutorials 6 ปีที่แล้ว +11

    Really nice video, thanks for sharing

  • @tonksndante4809
    @tonksndante4809 9 ปีที่แล้ว +1

    Thanks dude. Nice video. Super helpful :)

  • @gowthamvarma3896
    @gowthamvarma3896 7 ปีที่แล้ว +3

    great video do more like this that will help us .

    • @naukaridhondo8475
      @naukaridhondo8475 7 ปีที่แล้ว

      know in hindi click here th-cam.com/video/k_O3_KLqyWo/w-d-xo.html

  • @Coco-bd4gm
    @Coco-bd4gm 9 ปีที่แล้ว +1

    Iam using mint cinnamon, one of the most eco friendly thanks to some suggestions, thanks for the video man ... do more about bigginers, they are great and much more needed

  • @cyberborgman2000
    @cyberborgman2000 7 ปีที่แล้ว

    thanks for this mate. nice and helpful

  • @saiganhar
    @saiganhar 7 ปีที่แล้ว

    Excellent one for starters, Thanks a lot for this video. I did learn a lot from this video.

  • @reassume4826
    @reassume4826 5 ปีที่แล้ว

    Subscribed due to good content and also good presentation

  • @thufail19
    @thufail19 8 ปีที่แล้ว +3

    thankyou, love ur vids im a newbie to linux n have learned a lot from ur videos

  • @Isho242
    @Isho242 5 ปีที่แล้ว +1

    thank you very much for help about kill Unix ,i hope nest week you will do more then this for us

  • @womeninmovesolutionschanne1065
    @womeninmovesolutionschanne1065 5 ปีที่แล้ว +1

    thank you. This was very very useful! I love it.

  • @rathnakargardas3179
    @rathnakargardas3179 5 ปีที่แล้ว

    thank you for this great video n good learning experience from you as well as expecting more tutorials from you sir.

  • @SouravBagchiMCE
    @SouravBagchiMCE 6 ปีที่แล้ว +2

    Good tutorial for Linux command interface

  • @swetasingh6171
    @swetasingh6171 5 ปีที่แล้ว +1

    noice video
    thanks a lot

  • @dinakaran8040
    @dinakaran8040 7 ปีที่แล้ว +28

    Finally found an Indian vlogger who is world class at teaching technical stuffs.

    • @ashishbansa
      @ashishbansa 6 ปีที่แล้ว

      Most of them are Indians.

    • @PasqualItizzz
      @PasqualItizzz 6 ปีที่แล้ว +1

      Co-incidence? I think not #Hinduminatti

    • @t0d71
      @t0d71 6 ปีที่แล้ว

      Racist

  • @TravelScripting
    @TravelScripting 6 ปีที่แล้ว +1

    Thank you for this video.

  • @Or2biz
    @Or2biz 6 ปีที่แล้ว +2

    Excellent tutorial-(thanks)!!

  • @lachicadesistemas
    @lachicadesistemas 2 ปีที่แล้ว

    USR is not user. It means unix system resources, and it stems from the unix era. I wrote a full article about this on my blog.

  • @taimur4219
    @taimur4219 6 ปีที่แล้ว +3

    great work man!

  • @jagadeeshyeddula1198
    @jagadeeshyeddula1198 7 ปีที่แล้ว +1

    Really really
    Superb explaination
    Thank you very much..

  • @eldhovarghese7685
    @eldhovarghese7685 5 ปีที่แล้ว

    very informative and useful

  • @williamgupton8770
    @williamgupton8770 5 ปีที่แล้ว

    Thank you i learn a few new things

  • @ablesgurdaspur8641
    @ablesgurdaspur8641 10 ปีที่แล้ว +3

    brilliant work!.....thumb uup....!!!!

  • @sadikali6610
    @sadikali6610 6 ปีที่แล้ว +1

    Short story about linux.....Nice one

  • @Jerrel.A
    @Jerrel.A 5 ปีที่แล้ว +2

    Excellent!

  • @vtmnandhu
    @vtmnandhu 7 ปีที่แล้ว +7

    Nice one thanks making short and sweat

  • @janithmalinga5765
    @janithmalinga5765 9 ปีที่แล้ว

    excellent presentation

  • @djadaloui5196
    @djadaloui5196 6 ปีที่แล้ว

    thank you great course

  • @tamilmaranc
    @tamilmaranc 6 ปีที่แล้ว +2

    excellent teaches thanks a lot sir by C TAMILMARAN

  • @danshidoshiho5185
    @danshidoshiho5185 7 ปีที่แล้ว +10

    Hey, my friend. Thank you so much for so many acccurate informations and help you provide worldwide. Can i ask you a favor ? I actually HATE to be scared by the ultra-loud sound of a music intro when the speaking guy actually is whispering alike when talking... Could you go closer to the microphone or maybe lower the intro music level to get accordingly to the sound of your voice ?
    Thank you so much, and don't worry, this wasn't a critic.. but still... do it... "please" ..

    • @Perciwell
      @Perciwell 4 ปีที่แล้ว

      Actually, this video makes me sad. The presentation style is above average. The content is inaccurate in several places. It seems that the video author works with Linux only rarely, exceptionally or only for a few tasks.
      It is a drama that people who have no or very little knowledge about Linux so far are so impressed by beautifully and clearly presented misinformation.
      I would have been very pleased if the content of this video was as good as the presentation style. It is by far not.

    • @sligon00
      @sligon00 4 ปีที่แล้ว

      @@Perciwell So, can you tell us exactly what content was in error or left out ? Thanks :-)

    • @Perciwell
      @Perciwell 4 ปีที่แล้ว

      ​@@sligon00
      At about 1:33 -- Even if I would not mention it normally; I would prefer or suggest to write the directory names in the graphic of the Linux directory structure in lower case, because Linux and UNIX are case sensitive. I can see that you are using small capital letters, but it might be misleading.
      At about 3:04 -- It's often said but as far as I know not correct, that the directory name "usr" stands for "user", especially I would not know which "user data" might be in this directory.
      At about 3:59 -- It's questionable, if "su" is "superuser command", even if it seems to be plausible, because su command will by default switch to the superuser. But the general meaning is, that the command enters as another account. As far as I heard, it means "switch user".
      At about 4:54 -- There is mentioned, that if passwd is used without any account name, one can change the password of root. I might be pedantic, but this will only, and only be possible, if you are root or have root privileges. PS: The command passwd without any user name will always refer to the current user; not always to root, which would be a mess.
      At about 6:05 -- There was used first "su root" to work as root and it's said you will be going back to xpstech with the command "su xpstech". This looks like to be correct, but in fact you are not going back. At about 6:41 su command is again used for entering as root. If you would after each su command enter "echo $SHLVL" (for "shell level"), you would get every time another value. With each su command you will go deeper to the next new instance of shell. It's like the Russian matryoshkas. To go really back after a su command, you have to enter the command exit.
      At about 7:41 -- There is mentioned, that locate will find file names, but in fact locate will find strings in path. This can be a filename, but also a directory or sub directory name, also it might be only a part of a file or directory name. To look for file names it's better to use "locate -b " or even locate with a regular expression: "locate -r ".
      At about 8:17 - There is mentioned that "mount eject" will eject the CD drive, but eject is, at least at my system a command which is be used without "mount". I've never heard or read "mount eject".
      At about 8:37 -- The description of the cp command is not wrong, but very short. There are two cases, the destination might be a directory or a file. If you confuse it, and do believe that the target is a directory, but it's actually a file, the cp command will overwrite an existing file.
      At about 9:01 -- It's correct, that cat displays the content of a file, but it is also used to concatenate text files, to join multiple files content like this:
      cat file1 file2 file3 > bigfile
      At about 11:08 -- Searching the program gedit, try this:
      locate -r "\bgedit$"
      Also the video author has missed the opportunity to show that with less you can not only go line by line down a file, you can move by screen page or even half page and this should have been shown: You can search in less. So if you get a to large result list you can find in this list a specific string, might be "/gedit$". PS: You have to start search mode of less by writing a forward slash "/", and after this use as search string: /gedit$ - any match will be highlighted and you can jump forward to each match by pressing the key n, you can move back match by match by pressing [Shift]+[N].
      I know that many guys might think my points are in some cases pedantic, and I think so too. But I'm aware of a great competition for jobs in IT, so that I try to understand Linux narrowly as good as I'm able. So I'm not pedantic for blaming someone, but because I think that I only will get a new good paid job if I will be very competent and effective. I have high expectations against myself. The company for which I've worked at last has moved the whole desk I have worked in to another country where the work is cheaper, it's a poor company with a turnover of only 55 billions in 2018 and only 70 billions in 2019, and I'm not in my twentieth.

  • @m4fadi
    @m4fadi 9 ปีที่แล้ว +1

    I found it quite good so far. I am a beginner and wanna learn Linux for better job.

  • @18mazeed
    @18mazeed 8 ปีที่แล้ว

    Good presentation

  • @pramodkumarv7614
    @pramodkumarv7614 6 ปีที่แล้ว +1

    Nice video. Please zoom in more in next video. It's tough to focus when watching on mobile.

  • @skilz8098
    @skilz8098 6 ปีที่แล้ว

    There's really only one thing that I can think of that I've gained from this. Since I mostly been using windows, and I'm starting to get use to Unix like systems through Cygwin. I wrote a small program in C to use GNU's MPFR library to test it out. After successfully being able to compile and link the test program with their libraries and the executable is created; if I just try to run the program in the Cygwin (mintty) shell as such: "test" or "test.exe" I did not see any results from the Cygwin terminal. However if I opened windows cmd prompt or windows file viewer and navigated to this directory; I could either double click the exe icon or type it out in cmd and it would run. So back to the one thing that I did gain from this video when working in the Cygwin terminal is that for any C/C++ program that I build; if I want to run it through the terminal I can not simply just type the name of that program because its executable or binary is not in the $PATH environment. I would then have to use "./program_name" instead.

  • @anshulsoni5368
    @anshulsoni5368 7 ปีที่แล้ว +3

    I found this very helpful thanq sir

  • @gregzeng
    @gregzeng 6 ปีที่แล้ว +1

    More similarities should be made between Windows & Linux commands please. Both have help. And major differences as well.

  • @brookgebreegziabher6334
    @brookgebreegziabher6334 5 ปีที่แล้ว +2

    thank you, it is really helpfull

  • @nimda2sdfsdfsd
    @nimda2sdfsdfsd 6 ปีที่แล้ว

    locate command searches not from teh filesystem but rather from locate db and indexed content of your filesystem.

  • @miteshparekh6820
    @miteshparekh6820 7 ปีที่แล้ว

    Hey Vineet, this is good video to starters with Linux. its quite useful as easy language and good visual practicals.can you also share link for the next step video after these commands set?

  • @karjedav
    @karjedav 7 ปีที่แล้ว +1

    Great video.

  • @veereshsb7221
    @veereshsb7221 3 ปีที่แล้ว

    Bit you zoom in when you're going to explain something or typing in linux cell so that it will help full for us

  • @rajeshSimpleton
    @rajeshSimpleton 4 ปีที่แล้ว +1

    good video for beginners.
    su stands for switch user.
    Not super user.

  • @satyabanMCA
    @satyabanMCA 7 ปีที่แล้ว

    thanks and its helpfull

  • @towesc
    @towesc 6 ปีที่แล้ว

    thanks for the Video, good guide. just some thoughts if you don't mind.
    mnt is not necessarily where the system mounts removable media, this depends on the Linux flavour, e.g. Arch uses /run/media, for removable devices, others may use /media
    usr = Unix System Resources
    etc = Edit To Configure
    'su root' only works when the root account is enabled, it's disabled by default in Ubuntu as it is in most Linux flavours. Just want to point this out as well as it isn't deemed as secure to enabled root and in most cases not necessary, 'sudo su' is preferred and the users password is used instead of the root password.

  • @prof.newton2568
    @prof.newton2568 6 ปีที่แล้ว +1

    Thanks well Sir

  • @blingbling4190
    @blingbling4190 5 ปีที่แล้ว +2

    Good shit

  • @nitinshahare6286
    @nitinshahare6286 4 ปีที่แล้ว +1

    It is use for beginers😀😃😃

  • @biharlearning9294
    @biharlearning9294 5 ปีที่แล้ว

    Nice video

  • @gyvsr
    @gyvsr 5 ปีที่แล้ว

    Hello Sir, Are you sure is that forward or backward slash?

  • @vijay42681990
    @vijay42681990 5 ปีที่แล้ว

    Well explained thanks a lot PS AUX part related things was very interesting in learning :)

  • @Zoro24434
    @Zoro24434 3 ปีที่แล้ว

    10:25
    if i try to locate gedit
    Command 'locate' not found, but can be installed with:
    sudo apt install mlocate # version 0.26-5ubuntu1, or
    sudo apt install plocate # version 1.1.7-1

  • @tamilmaranc
    @tamilmaranc 6 ปีที่แล้ว +2

    very simple thanks for giving

  • @willymerz7032
    @willymerz7032 7 ปีที่แล้ว

    very helpful !!!

  • @oldacc1755
    @oldacc1755 4 ปีที่แล้ว +1

    Great

  • @sasi.connect
    @sasi.connect 8 ปีที่แล้ว

    very useful

  • @deblinadas3574
    @deblinadas3574 6 ปีที่แล้ว

    Can you please share a discussion on man from its basic level.

  • @Technicalturbo
    @Technicalturbo 7 ปีที่แล้ว +2

    Great.. Really Nice Content in the video..