Linux Command Line Tutorial For Beginners 2 - ls command in Linux

Sdílet
Vložit
  • čas přidán 14. 08. 2024
  • Find More On My Website - www.codebind.co...
    ls command Lists the files in the current directory, in alphanumeric order, except files starting with the “.” character. ls lists information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
    Linux and UNIX ls command help and examples ls command in linux. ls - Unix, Linux Command. ls - Linux Command - Unix Command Linux man page - ls command. cd command in linux. cat command in linux. grep command in linux. pwd command in linux. mkdir command in linux. cp command in linux. ls command in linux. ln command in linux
    ★★★Top Online Courses From ProgrammingKnowledge ★★★
    Python Programming Course ➡️ bit.ly/2vsuMaS ⚫️ bit.ly/2GOaeQB
    Java Programming Course ➡️ bit.ly/2GEfQMf ⚫️ bit.ly/2Vvjy4a
    Bash Shell Scripting Course ➡️ bit.ly/2DBVF0C ⚫️ bit.ly/2UM06vF
    Linux Command Line Tutorials ➡️ bit.ly/2IXuil0 ⚫️ bit.ly/2IXukt8
    C Programming Course ➡️ bit.ly/2GQCiD1 ⚫️ bit.ly/2ZGN6ej
    C++ Programming Course ➡️ bit.ly/2V4oEVJ ⚫️ bit.ly/2XMvqMs
    PHP Programming Course ➡️ bit.ly/2XP71WH ⚫️ bit.ly/2vs3od6
    Android Development Course ➡️ bit.ly/2UHih5H ⚫️ bit.ly/2IMhVci
    C# Programming Course ➡️ bit.ly/2Vr7HEl ⚫️ bit.ly/2W6RXTU
    JavaFx Programming Course ➡️ bit.ly/2XMvZWA ⚫️ bit.ly/2V2CoAi
    NodeJs Programming Course ➡️ bit.ly/2GPg7gA ⚫️ bit.ly/2GQYTQ2
    Jenkins Course For Developers and DevOps ➡️ bit.ly/2Wd4l4W ⚫️ bit.ly/2J1B1ug
    Scala Programming Tutorial Course ➡️ bit.ly/2PysyA4 ⚫️ bit.ly/2PCaVj2
    Bootstrap Responsive Web Design Tutorial ➡️ bit.ly/2DFQ2yC ⚫️ bit.ly/2VoJWwH
    MongoDB Tutorial Course ➡️ bit.ly/2LaCJfP ⚫️ bit.ly/2WaI7Ap
    QT C++ GUI Tutorial For Beginners ➡️ bit.ly/2vwqHSZ
    ★★★ Online Courses to learn ★★★
    Get 2 FREE Months of Unlimited Classes from skillshare - skillshare.eqc...
    Data Science - bit.ly/2lD9h5L | bit.ly/2lI8wIl
    Machine Learning - bit.ly/2WGGQpb | bit.ly/2GghLXX
    Artificial Intelligence - bit.ly/2lYqaYx | bit.ly/2NmaPya
    MERN Stack E-Degree Program - bit.ly/2kx2NFe | bit.ly/2lWj4no
    DevOps E-degree - bit.ly/2k1PwUQ | bit.ly/2k8Ypfy
    Data Analytics with R - bit.ly/2lBKqz8 | bit.ly/2lAjos3
    AWS Certification Training - bit.ly/2kmLtTu | bit.ly/2lAkQL1
    Projects in Java - bit.ly/2kzn25d | bit.ly/2lBMffs
    Machine Learning With TensorFlow - bit.ly/2m1z3AF | bit.ly/2lBMhnA
    Angular 8 - Complete Essential Guide - bit.ly/2lYvYRP
    Kotlin Android Development Masterclass - bit.ly/2GcblsI
    Learn iOS Programming Building Advance Projects - bit.ly/2kyX7ue
    ★★★ Follow ★★★
    My Website - www.codebind.com
    DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

Komentáře • 196

  • @prajwalr6792
    @prajwalr6792 Před 4 lety +69

    Just a correction, about the rights.. d is for directory.. next are rwxrwxrwx, these are permissions for owner, group and others respectively.. The "-" symbol means that particular right is not available.. e.g., The desktop folder has "drwxr-xr-x", it means d is directory, rwx means owner has permission to read write and execute, group has r-x so group has read and execute but not write permission, others have r-x which is again read and execute but not write permission.

  • @gaddeganesh6925
    @gaddeganesh6925 Před 7 lety +122

    In "ls - l" for permissions you have mentioned that permissions are seperated by minus symbol that is wrong. Permissions will always be set of rwx which are read write and execute. If amy permission is not there then that will be minus

  • @MayurPanghaal
    @MayurPanghaal Před 5 lety +28

    I am learning one lesson a day. Big thank you !!

  • @kumarshivam8077
    @kumarshivam8077 Před 6 lety +14

    Thanks sir for giving us such a valuable resources. This is the only place where i have found useful resources for my linux subject. Thank you sir from my heart.

    • @Anonymous-wd1dk
      @Anonymous-wd1dk Před 4 lety

      galat sikha rha haii lodu

    • @aryaakula5604
      @aryaakula5604 Před 3 lety

      @@Anonymous-wd1dk yes, some parts, but mostly he is teaching right

  • @prakharawasthi1590
    @prakharawasthi1590 Před 6 lety +5

    Although the Tutorial is quite good for beginner but there is a small mistake in Users Permission (8:30) , -rwx-w-r-- ----> If this is the Users Permission shown means the very first dash indicates the file type i.e. " - " is a regular file " s " is a special file , " d " signifies Directory , now after the first dash there will always be 9 space which will be occupied by some or the other Rights . Taking example of -rwx-w-r-- , We divide it as - , rwx , - w - , r - - . Noe as discussed already the first dash is Directory type the next set i.e. rwx indicates Owners Right which is Read Write Execute , then coming to group rights i,e, - w - means read is missing execute is missing only write is allowed (this is just an example), Now lastly the rights for the third group i.e r - - means Only read is allowed and write and execute is missing.
    Thanks

    • @rinjakundu
      @rinjakundu Před 5 lety

      was wondering how come no one noticed this mistake!

    • @satyamrai2577
      @satyamrai2577 Před 2 lety

      thanks for the correction.

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  Před 8 lety

    www.codebind.com/linux-tutorials/linux-man-page-ls-command/

  • @karamazovsc
    @karamazovsc Před 8 lety +20

    It is fantastic, i love learning about Linux.

  • @soniakhan9871
    @soniakhan9871 Před 3 lety +2

    It's just fabulous you clear every point....thanku so much.... I really enjoy the way of ur teaching..... 😊

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

  • @JubileeGiggles
    @JubileeGiggles Před 5 lety +4

    I think man is short for manual, if that helps. Gives you the user manual of all the functions of a command

  • @bianco1974nero
    @bianco1974nero Před 8 lety +5

    A little mistake exists beginning from 8:30 when you speak about permissions. :)

  • @jdmac44
    @jdmac44 Před 6 lety +3

    You know what makes your teaching videos so great? You're not trying to show your face and then the screen and then your face and then the screen... I can't stand it when I'm trying to learn code from a MOOC and the teacher feels like they have to show their face, when I"m trying to remember what I just saw on the desktop/terminal they were working in! There are other great things, but I just thought I'd say that I appreciate that you just focus on the code with the display, not worrying about being a star. :)

  • @user-ogdbalsuzf6
    @user-ogdbalsuzf6 Před rokem +1

    why should there be a forward slash before home but not before Documents directory?

  • @adityabagchi
    @adityabagchi Před 7 lety +3

    very well explained. perfect for a beginner

  • @waywardspirit7898
    @waywardspirit7898 Před 5 lety +6

    Thank you so much for the tutorials !! I have been researching linux for a couple months now and I have yet to get that "ah ha" moment. Until now. Most all tutorials for "beginners" assumes there is "some" previous command knowledge and your vids walked me through as if I am a true beginner (which I am) I think i'm finally getting it. ...Might be a dumb question but, why would one need to learn all these commands just to look at, list or open files verses simply clicking on the directories icon in the main window? (or typing out "move" commands verses simply dragging and dropping the file icon). Seems like 10 times the work for the same result. Thank you again for the great tutorials. :)

    • @kaushaki
      @kaushaki Před 3 měsíci

      Ayo, why do we need to learn addition, we can just learn integration na, it's the same thing.

    • @kaushaki
      @kaushaki Před 3 měsíci

      Sorry, it's like a 4 year old comment, I'm sorry.

  • @naumansafdar6821
    @naumansafdar6821 Před 2 lety

    Sir Ur tutorials r amaizing .......I will do it all and Ur method of teaching is great too

  • @khalidbakhtyar9105
    @khalidbakhtyar9105 Před 4 měsíci

    Thanks for everything its great lessen I learn. More about the Linux again thank so much for

  • @armandomolina2034
    @armandomolina2034 Před 9 měsíci

    Gret videos so far, thank you for making this series.

  • @princess2chiru
    @princess2chiru Před 4 lety +1

    really good introduction ... I did tried years ago to use linux and did fail spectacular
    this time I understand what to do

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

  • @Douglas-hw8is
    @Douglas-hw8is Před 4 lety +1

    Great tutorial - you teach very well. Many, many thanks. Duncan

  • @mouleshm210
    @mouleshm210 Před 3 lety

    best explanation for linux in utube

  • @priya200328
    @priya200328 Před 5 lety +1

    The Uburtu I am using is on a USB stick so would this be the same even if it was downloaded on the computer? Is this why I keep getting permission denied to access my doucuments?

  • @de_elper6259
    @de_elper6259 Před 9 měsíci +1

    Trying to select file, example I use ls desktop/ and in getting something like no such file or directory.. please what I'm I doing wrong

    • @thiruyadav125
      @thiruyadav125 Před 6 měsíci

      Generally ls desktop/ gives list of files or directories in /desktop, if there is no files in side desktop directory..it shows total is 0 ,if it shows no such file or directory means there is no /desktop file or directory ..linux is case sensitive.

  • @Stevesteacher
    @Stevesteacher Před 4 lety +4

    Really an amazing video for beginners!

  • @neerajmahapatra5239
    @neerajmahapatra5239 Před 4 lety +1

    Great explaination bro😜👌😜👌 loving it ...

  • @virajawati2475
    @virajawati2475 Před 7 lety

    We can also write ls -la command it shows same output. longlist and hidden file

  • @raama9730
    @raama9730 Před 6 měsíci

    Oh boy! Impressive explanation 😊

  • @jiveshshrivastav9722
    @jiveshshrivastav9722 Před 3 lety +1

    Every time I write the result of the command to a file using > filename, it overwrites it.
    Is there any way to append it and not overwrite it?

  • @armandomolina2034
    @armandomolina2034 Před 9 měsíci +1

    hey, at 13:25 i cannot save the ls- lS > out.txt
    ls: -: No such file or directory
    ls: lS: No such file or directory

  • @chinnarisirisha528
    @chinnarisirisha528 Před 3 lety +1

    Can u prefer some books for linux for easy understanding 😁😁

  • @ankursrivastava110
    @ankursrivastava110 Před 5 lety +1

    Please give difference between ls -d */ and ls -d

  • @tamyboy1
    @tamyboy1 Před 6 lety +2

    why would anyone dislike a video teaching them something

  • @sahilkumarsingh
    @sahilkumarsingh Před 7 lety +2

    good and detailed explanation

  • @maryammansuri1248
    @maryammansuri1248 Před 2 lety

    Thank you, I enjoyed the video and learning

  • @DataWiseDiscoveries
    @DataWiseDiscoveries Před 5 lety

    My first day in linux and getting excited to learn more ... please guys if you know any other channel which deals about linux nicely then please comment ... ok have a nice day and god bless you...

    • @reactive6625
      @reactive6625 Před 4 lety +1

      EzeeLinux: czcams.com/channels/TfabOKD7Yty6sDF4POBVqA.html

  • @mohammadrehan9445
    @mohammadrehan9445 Před 4 lety +1

    8:45 It is not like that, d is for directory '-' means that particular permission is not given to that owner or group or user. The first 'rwx' is for owner and the next 'rwx' is for ' group and the next 'rwx' is for user.

  • @VadlamudiPranathi-dm5os
    @VadlamudiPranathi-dm5os Před 3 měsíci

    Hi sir we can explain the projects on devops

  • @shreyasb.s3819
    @shreyasb.s3819 Před 2 lety

    Really good video.
    But if share all the commands in single notepad , again we can practice after watching that video.
    Otherwise again need to watch video. Double work.

  • @satyashivam4480
    @satyashivam4480 Před 4 lety

    ls
    ls to list down all directory in our current directory
    ls ~ , ls ../..
    -alS l for long S for sorted on basis of size a for all (also hidden directory)
    ls *a to list all directory ending with a in our current directory.
    ls -d to list only directory and not file
    ls > to store the result in file

  • @UKTECHNOLOGIESCOM
    @UKTECHNOLOGIESCOM Před rokem

    Thank you so much valuable video

  • @danycock8493
    @danycock8493 Před 2 lety

    I am getting error message.not able to open any home folders like documents.ls:cannot access documents.no such file or folder exists.

  • @PoojaKumari-gv8bf
    @PoojaKumari-gv8bf Před 5 lety +1

    what does the digit mean that is written before username and after drwxr-xr-x??

    • @reactive6625
      @reactive6625 Před 4 lety

      The number of hard links for that file.

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

  • @zakaryakhan9218
    @zakaryakhan9218 Před 7 lety

    very useful for me and maybe for others

  • @ansh0419
    @ansh0419 Před 4 lety +2

    "-" permission explanation is wrong. "-" means permission not given.

  • @narendrak8365
    @narendrak8365 Před 6 lety

    Very good tutorials, Thanks.

  • @aminezerradi5022
    @aminezerradi5022 Před 4 lety +1

    hello i saw the video it's a great material but when i type ls in my kali linux it return blank Notinhg

  • @Aslamyousfzai
    @Aslamyousfzai Před 5 lety +1

    Could you plz increase your text font size, bcz I can't able see this ,so pls make sure to increase your text size 🙏🙏🙏

  • @mustfun18
    @mustfun18 Před 10 měsíci

    How to open terminal
    In my system it is not coming
    Can u send the application link

  • @riturajshekhar2547
    @riturajshekhar2547 Před 7 lety

    Great tutorial man!! Keep the good work up!

  • @nakibuukasharon9773
    @nakibuukasharon9773 Před 9 měsíci

    At 14:30. Mine is showing permission denied 😢 am a beginner please in need more help, my folder is not created

  • @bhorseman3067
    @bhorseman3067 Před 4 lety

    Do you need a virtual graphical interface to access Desktop? I cannot access my laptop's desktop and I tried cd Desktop/ and
    cd~Desktop/

  • @charlesklein7232
    @charlesklein7232 Před 5 lety +1

    your very professional you could be teaching at a college. the only problem is the fact that clearly English is not your first language. you are the first person i found and return to when i started Linux from w2k. im curious what type of equipment are you using and how do you make videos. i would like to make them.

  • @munol2524
    @munol2524 Před rokem

    I ran ls-lRa > file.txt on my root directory. I got a text file containing 52,10,352 line.

  • @pritirani2275
    @pritirani2275 Před 6 lety

    thnks sir for this knowledge.. plz make more video for terminal cammnad based on industrial work..

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

  • @refrank7684
    @refrank7684 Před 4 lety

    awesome presentation

  • @umamurugan6045
    @umamurugan6045 Před 3 lety

    Why / is used at the end of end command?

  • @sooryadeviga3038
    @sooryadeviga3038 Před 5 lety

    Nice tutorial.thank you sir

  • @prajwalachar5244
    @prajwalachar5244 Před rokem

    Hello sir Make one video for resume regarding linux please as a fresher

  • @muhammadrafiqulislamkhan6994

    First of all Thank you. Can you tell me where Linux works and why should we learn linux . I have not enough knowledge about programming language.

    • @selva81652
      @selva81652 Před 4 lety

      It is used in many corporate companies over windows because linux is more secure and virus protection than windows

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

  • @amberlum9581
    @amberlum9581 Před 7 lety

    what a good video!!! Thank you so much for making this video and share with us!!

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

  • @rakibulhaque3444
    @rakibulhaque3444 Před 8 dny

    Thanks

  • @navyajanaki3087
    @navyajanaki3087 Před 7 lety +1

    the allowed permissions for both user, group and other are only 3 permissions respectively but not four they are read write execute ... please try to teach properly

  • @somanasatish1365
    @somanasatish1365 Před 3 lety

    Are these basics enough for learning aws

  • @bahar5517
    @bahar5517 Před 4 měsíci

    THANKS A LOT

  • @divaharm2534
    @divaharm2534 Před 6 měsíci

    Big thank you.

  • @gauravsavlani5725
    @gauravsavlani5725 Před 2 lety

    great video thank you

  • @ashutoshardu
    @ashutoshardu Před 2 lety

    Thank you so much 🙏

  • @novadeathstar9961
    @novadeathstar9961 Před 8 lety +1

    whats that - symbol it looks like a hypon but isnt

  • @sho.1
    @sho.1 Před 9 měsíci

    Thank you

  • @birajamishra
    @birajamishra Před 2 lety

    Good to learn this 🔥

  • @mikediaz9033
    @mikediaz9033 Před rokem

    What are your credentials .
    Con or Honorable?

  • @surajsarsambi4866
    @surajsarsambi4866 Před 4 lety

    ls .. bring us to present directory or show the content of home directory
    ls ../.. show the content of root directory

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

  • @rOnNiecHaRles16
    @rOnNiecHaRles16 Před 7 lety

    I LIKE YOUR VIDEOS!!!!!

  • @jjww2788
    @jjww2788 Před 3 lety

    thank you sir.

  • @kthegreat69420
    @kthegreat69420 Před 4 lety

    why don't you make the same for windows command prompt

  • @annepumurali2001
    @annepumurali2001 Před 6 lety

    List the how many commands useful for learners like echo,cat,script,Cal,date e.t.c and some example questions. How the questions are asking in tutorials let's do video on that

  • @outhounazakaria6899
    @outhounazakaria6899 Před 4 lety

    thank you brother

  • @isumitd9586
    @isumitd9586 Před 4 lety

    Its fascinating. Hope u have given advance cli commands also in other videos

  • @_sourav_
    @_sourav_ Před 5 lety

    What is the difference between root and home directory?

    • @reactive6625
      @reactive6625 Před 4 lety

      The root directory is the base directory of the entire file system (represented as a slash /) and therefore, contains every file on the system. The home directory contains the directories of the individual user accounts.

  • @saadrehman3156
    @saadrehman3156 Před 3 lety

    Great Man, loved it

  • @jagadeeshyeddula1198
    @jagadeeshyeddula1198 Před 6 lety

    Thank you
    Very much..

  • @AdityaGupta-kd7qf
    @AdityaGupta-kd7qf Před 3 lety

    Thanks man!

  • @ashmeetgujral768
    @ashmeetgujral768 Před 3 lety

    does ls -al list only hidden files in long format?

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

  • @apoorvjaiswal9385
    @apoorvjaiswal9385 Před 3 lety

    ls ~ not working in ubuntu bash in windows

  • @biscuit5973
    @biscuit5973 Před 6 měsíci

    ls ~ command is not working, and it does not show anything.

  • @priya200328
    @priya200328 Před 5 lety +1

    It says permission denied when I type ls Douments/ can someone explain to me what to do please?

    • @Anonymous-wd1dk
      @Anonymous-wd1dk Před 4 lety

      type "chmod u+x Documents"

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

    • @priya200328
      @priya200328 Před 3 lety

      @@techbbas Sub to mine and I'll sub to yours :D

    • @techbbas
      @techbbas Před 3 lety

      @@priya200328 ok I subscribe to your channel

    • @priya200328
      @priya200328 Před 3 lety

      @@techbbas Done!!

  • @hgaubaul
    @hgaubaul Před 7 lety

    good tutorial!

  • @236anoushka
    @236anoushka Před 6 lety

    Hello Sir
    In exams what kind of question can come for ubuntu.. For ma practical exam?

  • @siayush
    @siayush Před 6 lety

    awesome tutorial

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

  • @soumyakantapradhan4212

    Thannk you somuch sir

  • @moviehook9981
    @moviehook9981 Před rokem

    Thanx Brother

  • @kudakwashekatsande1718

    nice videos bro

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 Před 3 lety

    Thankyou sir

  • @techbbas
    @techbbas Před 3 lety

    great content

  • @usefgadallah738
    @usefgadallah738 Před 2 lety

    Good video bro but I have tested it in 2022 it doesn't work. I have tried the same method as mentioned in the video.

  • @ashutoshmalik3411
    @ashutoshmalik3411 Před 5 lety

    but ls shows the files in root and ls ~ shows files of home directory

    • @techbbas
      @techbbas Před 3 lety

      Hey plz support my channel to subscribe

  • @rebazomer7821
    @rebazomer7821 Před 4 lety +1

    i donot know why most of people tell - symbol mines this is called hyphen

  • @vellaengineer4408
    @vellaengineer4408 Před 6 lety

    thanku so much!!!!!

  • @Lazyrecipes_lazyme
    @Lazyrecipes_lazyme Před 6 lety

    Sir after using the ls -lS > out.txt it shows that permission denied

    • @ProgrammingKnowledge
      @ProgrammingKnowledge  Před 6 lety +2

      That means you don't have access to the directory you are working in.
      You have two options here . One use sudo in front of your command. The second, use this command in the directory in which you have right access

    • @Lazyrecipes_lazyme
      @Lazyrecipes_lazyme Před 6 lety

      ProgrammingKnowledge thank you sir

  • @mstfakml3475
    @mstfakml3475 Před 5 lety

    Can you tell us which linux version you use here?

  • @sushantjagadale
    @sushantjagadale Před 5 lety

    Outstanding