Connecting Tech Pros Worldwide Help | Site Map

commands...

Member
 
Join Date: Oct 2006
Location: California, USA
Posts: 45
#1: Nov 11 '06
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
Newbie
 
Join Date: Nov 2006
Posts: 5
#2: Nov 13 '06

re: commands...


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

Quote:

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

Newbie
 
Join Date: Nov 2006
Posts: 5
#3: Nov 13 '06

re: commands...


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

Quote:

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

Reply


Similar Unix / Linux / BSD bytes