Godlike Productions - Discussion Forum
Users Online Now: 1,356 (Who's On?)Visitors Today: 461,280
Pageviews Today: 603,290Threads Today: 186Posts Today: 2,539
05:18 AM


Rate this Thread

Absolute BS Crap Reasonable Nice Amazing
 

Urgent help on Linux

 
IMAX
Offer Upgrade

User ID: 35675988
Canada
03/10/2013 03:44 PM
Report Abusive Post
Report Copyright Violation
Urgent help on Linux
/home/msabbar/sample_dir2
`-- sample_dir
|-- admin
|-- cambridge
| |-- cafeteria
| |-- library
| `-- security
| |-- annex
| |-- building
| `-- parking
|-- faculty
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
`-- stenton
|-- gen_ed
| |-- Holidays
| `-- cars2
`-- lib_arts
|-- english.txt
`-- match.doc

11 directories, 11 files

Your current directory is stenton. Copy the first 300 lines of file
~bto120/phones to a new file called phone_directory in stenton. This file
contains phone number and location information, sorted by last name, which
is the first field in each record.

any ideas guys?

Last Edited by IMAX on 03/10/2013 03:58 PM
Imagine if there was no country
Stop the Sabre Rattlings and Wars
IMAX  (OP)

User ID: 35675988
Canada
03/10/2013 03:50 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
hf guys please help me with this

Last Edited by IMAX on 03/10/2013 03:59 PM
Imagine if there was no country
Stop the Sabre Rattlings and Wars
Anonymous Coward
User ID: 913721
Netherlands
03/10/2013 03:55 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
# cd gen_ed
# nano *ars*

if nano not installed, try pico,
if nano not installed try cat
if cat not installed try less
IMAX  (OP)

User ID: 35675988
Canada
03/10/2013 03:59 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
# cd gen_ed
# nano *ars*

if nano not installed, try pico,
if nano not installed try cat
if cat not installed try less
 Quoting: Anonymous Coward 913721


i changed the question...can you answer this new one please?
Imagine if there was no country
Stop the Sabre Rattlings and Wars
Anonymous Coward
User ID: 913721
Netherlands
03/10/2013 04:02 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
[link to www.stackoverflow.com]

good luck
Anonymous Coward
User ID: 1647441
United States
03/10/2013 04:03 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
vi /dev/null

Thread: urgent help for linux....if u know anything about it than share your ideas
Thread: Urgent help on Linux...if there is anyone out the who knows anything about it
Anonymous Coward
User ID: 913721
Netherlands
03/10/2013 04:04 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
or even better in your case :

[link to superuser.com]
Anonymous Coward
User ID: 913721
Netherlands
03/10/2013 04:05 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
or the best

[link to serverfault.com]
Anonymous Coward
User ID: 35096685
United States
03/10/2013 04:10 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
Please!

head -n 300 ~bto120/phones > my_new_file.txt
Anonymous Coward
User ID: 35096685
United States
03/10/2013 04:15 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
From the looks of those other posts...you might want to take the time to learn a bit of Linux. Once you do...you will never go back to Winblows!!!
Anonymous Coward
User ID: 35909103
United States
03/10/2013 04:21 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
From the looks of those other posts...you might want to take the time to learn a bit of Linux. Once you do...you will never go back to Winblows!!!
 Quoting: Anonymous Coward 35096685


I am stuck in a Windows world, but have downloaded the Linux equivalent commands. Get tasks done quicker that way.
Anonymous Coward
User ID: 35096685
United States
03/10/2013 04:21 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
It sounds like you are taking a course. Do YOURSELF the favor...don't come on here or go to any other board to get your answers! Do the work yourself and figure it out. The knowledge you gain will be worth it! Once you get working with Linux ( or any other UNIX for that matter) you will see that UNIX/Linux is MUCH more powerful than any OS that MircoSoft has out there! The things you can do with Linux will blow your mind....stuff that is crippled or does not even exist in Winblows!
IMAX  (OP)

User ID: 35675988
Canada
03/10/2013 04:23 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
Please!

head -n 300 ~bto120/phones > my_new_file.txt
 Quoting: Anonymous Coward 35096685


dude i've been trying that

cp head -n 300 ~bto120/phones > phone_directory

and even
cp head -n 300 ~bto120/phones >> phone_directory

neither work
what am i doing wrong???

is there something i am missing from the question?
Imagine if there was no country
Stop the Sabre Rattlings and Wars
Anonymous Coward
User ID: 35096685
United States
03/10/2013 04:24 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
From the looks of those other posts...you might want to take the time to learn a bit of Linux. Once you do...you will never go back to Winblows!!!
 Quoting: Anonymous Coward 35096685


I am stuck in a Windows world, but have downloaded the Linux equivalent commands. Get tasks done quicker that way.
 Quoting: Zetetic


ABSOLUTELY!!! Winblows is crippled without Cygwin...and the cost of Cygwin...nothing! When I was stuck in Winblows world...the first thing I would install on the box was Cygwin...with an X11 server...I was then able to have bash in an xterm...on Winblows. Next in order was to make sure that I had vi and my ssh client....then...and only then was Winblows liveable!
IMAX  (OP)

User ID: 35675988
Canada
03/10/2013 04:25 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
It sounds like you are taking a course. Do YOURSELF the favor...don't come on here or go to any other board to get your answers! Do the work yourself and figure it out. The knowledge you gain will be worth it! Once you get working with Linux ( or any other UNIX for that matter) you will see that UNIX/Linux is MUCH more powerful than any OS that MircoSoft has out there! The things you can do with Linux will blow your mind....stuff that is crippled or does not even exist in Winblows!
 Quoting: Anonymous Coward 35096685


i concur
that is why I am trying to learn it

however...i keep answering these questions and i keep getting "Please try again"

I go over my lecture notes but get little in return

this is why i'm coming on here

thanks for understanding hf
Imagine if there was no country
Stop the Sabre Rattlings and Wars
Anonymous Coward
User ID: 35096685
United States
03/10/2013 04:26 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
Please!

head -n 300 ~bto120/phones > my_new_file.txt
 Quoting: Anonymous Coward 35096685


dude i've been trying that

cp head -n 300 ~bto120/phones > phone_directory

and even
cp head -n 300 ~bto120/phones >> phone_directory

neither work
what am i doing wrong???

is there something i am missing from the question?
 Quoting: IMAX


If you just want a copy of the first 300 lines of that file...just run

head -n 300 ~bto120/phones > phone_directory

do NOT use the cp command!
Anonymous Coward
User ID: 35096685
United States
03/10/2013 04:30 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
Get this book...
[link to www.amazon.com]
IMAX  (OP)

User ID: 35675988
Canada
03/10/2013 04:34 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
Please!

head -n 300 ~bto120/phones > my_new_file.txt
 Quoting: Anonymous Coward 35096685


dude i've been trying that

cp head -n 300 ~bto120/phones > phone_directory

and even
cp head -n 300 ~bto120/phones >> phone_directory

neither work
what am i doing wrong???

is there something i am missing from the question?
 Quoting: IMAX


If you just want a copy of the first 300 lines of that file...just run

head -n 300 ~bto120/phones > phone_directory

do NOT use the cp command!
 Quoting: Anonymous Coward 35096685


okay i tried as you said

head -n 300 ~bto120/phones > phone_directory
ddn't work

head -n 300 phones > phone_directory
ddn't work
Imagine if there was no country
Stop the Sabre Rattlings and Wars
Anonymous Coward
User ID: 35502397
Lithuania
03/10/2013 04:38 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
"ddn't work" do not tell anything useful post what error you get.
IMAX  (OP)

User ID: 35675988
Canada
03/10/2013 04:42 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
i even did this
head -n 300 ~bto120/phones | sort > phone_directory

and;
head -n 300 ~/bto120/phones | sort > phone_directory

and ;
head -n 300 ~bto120/phones | sort >> phone_directory

and;

head -n 300 ~/bto120/phones | sort > phone_directory

and ;
head -n 300 ~/bto120/phones | sort >> phone_directory


and still nothing
Imagine if there was no country
Stop the Sabre Rattlings and Wars
IMAX  (OP)

User ID: 35675988
Canada
03/10/2013 04:43 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
"ddn't work" do not tell anything useful post what error you get.
 Quoting: Anonymous Coward 35502397


it's an assignment ... so it just tells me "Please try again"
Imagine if there was no country
Stop the Sabre Rattlings and Wars
Anonymous Coward
User ID: 1339701
United States
03/10/2013 04:44 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
Please!

head -n 300 ~bto120/phones > my_new_file.txt
 Quoting: Anonymous Coward 35096685


s/~bto120/~\/bto120/
Anonymous Coward
User ID: 913721
Netherlands
03/10/2013 04:47 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
try this OS if you come from Windows :

[link to zorin-os.com]
IMAX  (OP)

User ID: 35675988
Canada
03/10/2013 04:48 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
try this OS if you come from Windows :

[link to zorin-os.com]
 Quoting: Anonymous Coward 913721

Matrix
Shell

Last Edited by IMAX on 03/10/2013 04:48 PM
Imagine if there was no country
Stop the Sabre Rattlings and Wars
Anonymous Coward
User ID: 33568463
Belgium
03/10/2013 04:48 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
man head
man sort
man uniq

and help yourself out...
Anonymous Coward
User ID: 1339701
United States
03/10/2013 04:49 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
i even did this
head -n 300 ~bto120/phones | sort > phone_directory

and;
head -n 300 ~/bto120/phones | sort > phone_directory

and ;
head -n 300 ~bto120/phones | sort >> phone_directory

and;

head -n 300 ~/bto120/phones | sort > phone_directory

and ;
head -n 300 ~/bto120/phones | sort >> phone_directory


and still nothing
 Quoting: IMAX


Try it without the -n. The assignment software might not have all of the correct possibilities. Drop the sort since the assignment software might not like that.

Get on a Linux command line and try it if you really want to learn.
Anonymous Coward
User ID: 33568463
Belgium
03/10/2013 04:51 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
here's an assignment:
man `echo $SHELL|cut -d '/' -f 3`
Anonymous Coward
User ID: 35909103
United States
03/10/2013 04:51 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
Troublshooting 101 lesson....
Break down the parts of the command line input.
Get the head command working and then add the next part of the command.
Anonymous Coward
User ID: 1339701
United States
03/10/2013 04:55 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
Troublshooting 101 lesson....
Break down the parts of the command line input.
Get the head command working and then add the next part of the command.
 Quoting: Zetetic


^this

you can do it online at [link to cb.vu]
IMAX  (OP)

User ID: 35675988
Canada
03/10/2013 04:58 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
i even did this
head -n 300 ~bto120/phones | sort > phone_directory

and;
head -n 300 ~/bto120/phones | sort > phone_directory

and ;
head -n 300 ~bto120/phones | sort >> phone_directory

and;

head -n 300 ~/bto120/phones | sort > phone_directory

and ;
head -n 300 ~/bto120/phones | sort >> phone_directory


and still nothing
 Quoting: IMAX


Try it without the -n. The assignment software might not have all of the correct possibilities. Drop the sort since the assignment software might not like that.

Get on a Linux command line and try it if you really want to learn.
 Quoting: Anonymous Coward 1339701


YESSSSSS

You = Genius

head -300 ~bto120/phones > phone_directory
is the answer
Imagine if there was no country
Stop the Sabre Rattlings and Wars
IMAX  (OP)

User ID: 35675988
Canada
03/10/2013 05:04 PM
Report Abusive Post
Report Copyright Violation
Re: Urgent help on Linux
so far so good...i can answer the rest of te questions

this one was confusing not just me , but for many

if i had another question ... ill post one
tomato
Imagine if there was no country
Stop the Sabre Rattlings and Wars





GLP