Help with Unix
Help with Unix
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.
echo*
echo /*
echo \*
echo "*"
echo
echo */*
rm *
Then if you wouldn't help me further i'd greatly appreciate this.
- shadowkhas
- Posts: 5423
- Joined: Wed Jun 23, 2004 8:00 am
- Location: Salt Lake City, Utah
Re: Help with Unix
Or, man <command>
(7:15:27 PM) Xenon7: I BRUK THE FIRST PAGE OMGOMGOMG RONALD REGAN
Re: Help with Unix
Sneaky, i'm talking strictly unix not linux. Shadow, what?
Re: Help with Unix
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.
Edit: it would be a very bad idea to run the last command from your terminal. Just saying.
Re: Help with Unix
As long as you weren't running as root, would the last command do anything?
- FleetAdmiralBacon
- Posts: 2377
- Joined: Sat Nov 26, 2005 7:01 pm
- Location: Ohio
- Contact:
Re: Help with Unix
It would delete everything in the current folder that you have write access to. (But not subfolders.)WaeV wrote:As long as you weren't running as root, would the last command do anything?
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.
- MarsMartianMan
- Posts: 431
- Joined: Tue Apr 01, 2008 11:34 am
- Location: Florida
- Contact:
Re: Help with Unix
I got a gigantic wall of text, looks like my entire HDD's contents.
Your teacher is evil.
Your teacher is evil.
Re: Help with Unix
Why would both do the same thing tho? So having the wildcard before or after the forward slash means nothing?Altimit01 wrote:echo */* will do that. wouldn't expect anything less really.
- LuxuriousMeat
- Posts: 824
- Joined: Thu Nov 03, 2005 6:43 pm
- Location: zzzzzzzzzzzzzzzz
- Contact:
Re: Help with Unix
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.kibito87 wrote:Why would both do the same thing tho? So having the wildcard before or after the forward slash means nothing?Altimit01 wrote:echo */* will do that. wouldn't expect anything less really.
- noxiousraccoon
- Posts: 441
- Joined: Wed May 17, 2006 2:54 pm
Re: Help with Unix
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.