Help with Unix

Off topic chat. Basically anything that doesn't concern halo or halo modding can go here.
Post Reply
User avatar
kibito87




Stylist Connoisseur Advisor Bloodhound
Droplet Articulatist 500

Posts: 3461
Joined: Mon Feb 21, 2005 7:49 pm
Location: Ohio
Contact:

Help with Unix

Post by kibito87 »

So I have this quiz my teacher gave me and i'm having a little trouble trying to find what these commands do...I can either type them out here or if you wouldn't mind contacting me on AIM or via PM's that would be awesome.

echo*
echo /*
echo \*
echo "*"
echo
echo */*
rm *

Then if you wouldn't help me further i'd greatly appreciate this. :D
Image
sneakyn8





Posts: 989
Joined: Thu Dec 14, 2006 1:48 pm

Re: Help with Unix

Post by sneakyn8 »

User avatar
shadowkhas




Snitch! Socialist

Posts: 5423
Joined: Wed Jun 23, 2004 8:00 am
Location: Salt Lake City, Utah

Re: Help with Unix

Post by shadowkhas »

Or, man <command>
(7:15:27 PM) Xenon7: I BRUK THE FIRST PAGE OMGOMGOMG RONALD REGAN
User avatar
kibito87




Stylist Connoisseur Advisor Bloodhound
Droplet Articulatist 500

Posts: 3461
Joined: Mon Feb 21, 2005 7:49 pm
Location: Ohio
Contact:

Re: Help with Unix

Post by kibito87 »

Sneaky, i'm talking strictly unix not linux. Shadow, what?
Image
User avatar
Altimit01




Connoisseur Snitch! Literarian 500

Posts: 947
Joined: Sun Jun 04, 2006 12:10 pm

Re: Help with Unix

Post by Altimit01 »

He's saying use the man page from your terminal. Also echo and rm should behave the same for linux and unix. They're such basic commands that the differences if present would be minimal.

Edit: it would be a very bad idea to run the last command from your terminal. Just saying.
Image
Download Eschaton: Halomods | Filefront | Mediafire
User avatar
WaeV




Advisor

Posts: 1045
Joined: Tue Jun 01, 2004 10:45 am
Location: New England

Re: Help with Unix

Post by WaeV »

As long as you weren't running as root, would the last command do anything?
Image
User avatar
FleetAdmiralBacon




Critic Pyre Articulatist 500

Posts: 2377
Joined: Sat Nov 26, 2005 7:01 pm
Location: Ohio
Contact:

Re: Help with Unix

Post by FleetAdmiralBacon »

WaeV wrote:As long as you weren't running as root, would the last command do anything?
It would delete everything in the current folder that you have write access to. (But not subfolders.)
Image
Everything you'll ever need to know about me.
Need help with Linux, C#, C, Python, Java, PHP, Javascript, CSS, or VB? I'm available from 3:00PM-8:00PM EST on weekdays.
User avatar
MarsMartianMan





Posts: 431
Joined: Tue Apr 01, 2008 11:34 am
Location: Florida
Contact:

Re: Help with Unix

Post by MarsMartianMan »

I got a gigantic wall of text, looks like my entire HDD's contents.

Your teacher is evil.
Image
Welcome to Mars.
Thien wrote:On the bright side, I groped some black dude today.
User avatar
Altimit01




Connoisseur Snitch! Literarian 500

Posts: 947
Joined: Sun Jun 04, 2006 12:10 pm

Re: Help with Unix

Post by Altimit01 »

echo */* will do that. wouldn't expect anything less really.
Image
Download Eschaton: Halomods | Filefront | Mediafire
User avatar
kibito87




Stylist Connoisseur Advisor Bloodhound
Droplet Articulatist 500

Posts: 3461
Joined: Mon Feb 21, 2005 7:49 pm
Location: Ohio
Contact:

Re: Help with Unix

Post by kibito87 »

Altimit01 wrote:echo */* will do that. wouldn't expect anything less really.
Why would both do the same thing tho? So having the wildcard before or after the forward slash means nothing?
Image
User avatar
LuxuriousMeat





Posts: 824
Joined: Thu Nov 03, 2005 6:43 pm
Location: zzzzzzzzzzzzzzzz
Contact:

Re: Help with Unix

Post by LuxuriousMeat »

kibito87 wrote:
Altimit01 wrote:echo */* will do that. wouldn't expect anything less really.
Why would both do the same thing tho? So having the wildcard before or after the forward slash means nothing?
No, I'm assuming the wildcard is before the / too so it will do files in parent folders if your current directory isn't the root of the file system.
Image
User avatar
noxiousraccoon




Wordewatician 250

Posts: 441
Joined: Wed May 17, 2006 2:54 pm

Re: Help with Unix

Post by noxiousraccoon »

The built in echo command writes out any words that follow it on the same command line to standard output so it's output can be directed to a file.
Image
Image
Post Reply