LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   > _ .....such a newbie (https://www.linuxquestions.org/questions/linux-newbie-8/_-such-a-newbie-4175558714/)

bspann6 11-12-2015 02:40 PM

> _ .....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

AlucardZero 11-12-2015 02:47 PM

You quotes are mismatched. Cancel that command (it's doing nothing) and balance them.

allend 11-12-2015 02:49 PM

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.

bspann6 11-12-2015 02:51 PM

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

Habitual 11-12-2015 02:54 PM

Quote:

Originally Posted by bspann6 (Post 5448779)
So another stupid question how do I cancel that?

Control+C

John VV 11-12-2015 02:55 PM

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"

bspann6 11-12-2015 03:14 PM

I GOT IT!!!! Thank-you all so much, you saved my bacon

chrism01 11-12-2015 05:04 PM

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

ardvark71 11-12-2015 05:59 PM

Quote:

Originally Posted by bspann6 (Post 5448798)
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...


All times are GMT -5. The time now is 09:41 AM.