LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2015, 02:40 PM   #1
bspann6
LQ Newbie
 
Registered: Nov 2015
Posts: 3

Rep: Reputation: Disabled
> _ .....such a newbie


Hello All,

I am a developer, that uses mostly windows boxes however in our office we have one box that runs centOS 5 (AKA Kryptonite to us Windows guys lol)

I have tried deleting some backups on this server using the following Command Line

find /var/lib/asterisk/backups/ -name *.gz" -mtime +90 -delete

I have a good idea of what the above line is doing, however when I ran the command instead of it going back to the standard prompt, which looks like this

[root@localhost var]# it instead went to the next line and it looks like this: > _

so my question is did I break something? or this like a processing please wait? just not sure what all is going on with it....

Thank-you all for taking the time to look at this, I appreciate it in advance.

Bryan
 
Old 11-12-2015, 02:47 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You quotes are mismatched. Cancel that command (it's doing nothing) and balance them.
 
Old 11-12-2015, 02:49 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Welcone to LQ!
Code:
find /var/lib/asterisk/backups/ -name "*.gz" -mtime +90 -delete
# Missing double quote here-----------^
This has caused the shell to consider that the command is not complete, and expects you to continue input on the next line, hence the > prompt.
 
Old 11-12-2015, 02:51 PM   #4
bspann6
LQ Newbie
 
Registered: Nov 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank-you Thank-you

So another stupid question how do I cancel that?

my guess is the command should look like
find /var/lib/asterisk/backups/ -name "*.gz" -mtime +90 -delete
?

I am so sorry, I am truly as green as it gets on these commands. and am going by examples I have found on other boards.

Thanks again
Bryan
 
Old 11-12-2015, 02:54 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by bspann6 View Post
So another stupid question how do I cancel that?
Control+C
 
Old 11-12-2015, 02:55 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you are aware that cent5 is a LEGACY hardware operating system now
it is really showing it's OLD AGE

and that cent is ONLY!!! supporting the single minor version CentOS 5.11

if the output of this is NOT 5.11 upgrade ASAP!!!!
Code:
su -
cat /etc/redhat-release
as above "> _ "
the terminal is waiting for you to finish the incomplete command

you are missing one "
or
have one " too many

"", ``,'' and () and {} and [] are all like there math formula equivalents

if you have a "open" you MUST!!! have a "close"
 
Old 11-12-2015, 03:14 PM   #7
bspann6
LQ Newbie
 
Registered: Nov 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
I GOT IT!!!! Thank-you all so much, you saved my bacon
 
Old 11-12-2015, 05:04 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Also, best to use single quotes there so that the name pattern gets parsed by the find cmd itself, rather than the shell (which is what happens with double quotes).
It can lead to problems in certain situations.

FYI this is a good cli tutorial http://rute.2038bug.com/index.html.gz
 
Old 11-12-2015, 05:59 PM   #9
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by bspann6 View Post
I GOT IT!!!! Thank-you all so much, you saved my bacon
Cool! If you would, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks!

Regards...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] apache newbie/mrtg newbie (newbie to everything) new2nagios Linux - Software 3 12-14-2009 09:05 AM
security newbie, but not Linux newbie. advice on secure delete tools mattie_linux Linux - Security 19 08-15-2005 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration