commands...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • outofmymind
    New Member
    • Oct 2006
    • 45

    commands...

    Hi...can anyone please explain for me what the commands below do

    a. ls -Rlat > /home/csuser/myfile

    b. sort < numbers > results

    c. cat /etc/passwd | head -n 5


    Thank You

    outofmymind
  • suryakantyadav
    New Member
    • Nov 2006
    • 5

    #2
    Hi thre,
    ls -Rlat > /home/csuser/myfile

    Mean of the following switches are :---

    -R includes the contents of subdirectories.
    -l Shows you huge amounts of information (permissions, owners, size, and when last modified.)
    -a Shows you all files, even files that are hidden (these files begin with a dot.)
    -t Shows you the files in modification time.

    And now output of this command will print to a file named "myfile" at location /home/csuser

    Suryakant Yadav

    Originally posted by outofmymind
    Hi...can anyone please explain for me what the commands below do

    a. ls -Rlat > /home/csuser/myfile

    b. sort < numbers > results

    c. cat /etc/passwd | head -n 5


    Thank You

    outofmymind

    Comment

    • suryakantyadav
      New Member
      • Nov 2006
      • 5

      #3
      Hi thre,
      ls -Rlat > /home/csuser/myfile

      Mean of the following switches are :---

      -R includes the contents of subdirectories.
      -l Shows you huge amounts of information (permissions, owners, size, and when last modified.)
      -a Shows you all files, even files that are hidden (these files begin with a dot.)
      -t Shows you the files in modification time.

      And now output of this command will print to a file named "myfile" at location /home/csuser

      cat /etc/passwd | head -n 5

      Display top 5 lines of the file named passwd witch is located at /etc


      Suryakant Yadav

      Originally posted by outofmymind
      Hi...can anyone please explain for me what the commands below do

      a. ls -Rlat > /home/csuser/myfile

      b. sort < numbers > results

      c. cat /etc/passwd | head -n 5


      Thank You

      outofmymind

      Comment

      Working...