Saturday, March 25, 2017

Re: [LINUX_Newbies] how to killall chromium

 

On 03/25/2017 06:15 AM, Scott scottro@nyc.rr.com [LINUX_Newbies] wrote:
>
>
> On Sat, Mar 25, 2017 at 07:00:37AM +0100, 'highskywhy@yahoo.de'
> highskywhy@yahoo.de [LINUX_Newbies] wrote:
>> hello stupid question again from sophie how to kill a task
>> you cannot say killall -9 vivaldi but u must say killall -9 vivaldi-bin
>> how to kill chromium?
>>
>> killall -9 chromium does not work and killall -9 chromium-browser does
>> not work.
>>
>> we do it now in the bad way
>> we do top
>> and then we kill task by task with kill 1234 kill 4543 and so on and so
>> we kill every tab
>
> Using kill has to be used with the PID (Process ID) of the task.
> The same for kill -9. To use the name of the process you use pkill, for
> example,
>
> pkill chrom (even if you don't have the full name, it should work, but
> chrome usually opens up a bunch of PIDs.
>
> I have a one line script that looks for the processes and kills them.
> It's not elegant but works.
>
> pgrep chrome|xargs kill -9
>
> The pgrep gets the PID, then xargs uses that result to do something else,
> in this case, kill -9.
>
> Anyway, if you're killing a process by name, use pkill, not kill.
> To get a PID, you can use pgrep rather than running top, though either one
> works.
>
> --
> Scott Robbins
I'd never heard of pkill before. I'll have to remember that one...

__._,_.___

Posted by: Michael <msulli1355@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (31)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

Re: [LINUX_Newbies] how to killall chromium

 

On 03/25/2017 01:00 AM, 'highskywhy@yahoo.de' highskywhy@yahoo.de
[LINUX_Newbies] wrote:
>
>
> hello stupid question again from sophie how to kill a task
> you cannot say killall -9 vivaldi but u must say killall -9 vivaldi-bin
> how to kill chromium?
>
> killall -9 chromium does not work and killall -9 chromium-browser does
> not work.
>
> we do it now in the bad way
> we do top
> and then we kill task by task with kill 1234 kill 4543 and so on and so
> we kill every tab
>
> regards
> sophie
>

I would try ps ax | grep 'chromium' and kill -9 the process number, but
I'm sure that others here know better ways. If chromium doesn't work,
have you considered uninstalling it?

__._,_.___

Posted by: Michael <msulli1355@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (30)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

Re: [LINUX_Newbies] how to killall chromium

 

On Sat, Mar 25, 2017 at 07:00:37AM +0100, 'highskywhy@yahoo.de' highskywhy@yahoo.de [LINUX_Newbies] wrote:
> hello stupid question again from sophie how to kill a task
> you cannot say killall -9 vivaldi but u must say killall -9 vivaldi-bin
> how to kill chromium?
>
> killall -9 chromium does not work and killall -9 chromium-browser does
> not work.
>
> we do it now in the bad way
> we do top
> and then we kill task by task with kill 1234 kill 4543 and so on and so
> we kill every tab

Using kill has to be used with the PID (Process ID) of the task.
The same for kill -9. To use the name of the process you use pkill, for
example,

pkill chrom (even if you don't have the full name, it should work, but
chrome usually opens up a bunch of PIDs.

I have a one line script that looks for the processes and kills them.
It's not elegant but works.

pgrep chrome|xargs kill -9

The pgrep gets the PID, then xargs uses that result to do something else,
in this case, kill -9.

Anyway, if you're killing a process by name, use pkill, not kill.
To get a PID, you can use pgrep rather than running top, though either one
works.

--
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

__._,_.___

Posted by: Scott <scottro@nyc.rr.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (29)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

Friday, March 24, 2017

[LINUX_Newbies] how to killall chromium

 

hello stupid question again from sophie how to kill a task
you cannot say killall -9 vivaldi but u must say killall -9 vivaldi-bin
how to kill chromium?

killall -9 chromium does not work and killall -9 chromium-browser does
not work.

we do it now in the bad way
we do top
and then we kill task by task with kill 1234 kill 4543 and so on and so
we kill every tab

regards
sophie

__._,_.___

Posted by: "highskywhy@yahoo.de" <highskywhy@yahoo.de>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (28)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

Re: [LINUX_Newbies] rm -f

 

On 25Mar2017 10:05, Cameron Simpson <cs@zip.com.au> wrote:
>On UNIX, -f does not add any more "power" to rm; it does allow you to remove
>something that cannot ordinarily be removed.

That should of course read "it does _not_ allow you to remove". Sorry.

Cheers,
Cameron Simpson <cs@zip.com.au>

__._,_.___

Posted by: Cameron Simpson <cs@zip.com.au>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (27)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

Re: [LINUX_Newbies] rm -f

 

On 24Mar2017 19:11, highskywhy@yahoo.de <highskywhy@yahoo.de> wrote:
>the problem is NOT
>system files
>
>we wanna delete in win and libnux HTM files.
>RM brings the message: file is in use

As others are pointing out, something is preventing removal and lsof etc may
help you there, eg:

lsof /path/to/the/file

You will probably need to be root when you run lsof, because otherwise lsof
will only report on your own processes. But try it as you first, it may be your
own processes holding the file.

However, on UNIX systems (includes Linux) a file being in use does not prevent
you removing it. That is Windows behaviour. Are you asking about Windows or
UNIX?

Regarding the -f option to rm:

On UNIX, -f does not add any more "power" to rm; it does allow you to remove
something that cannot ordinarily be removed.

What -f does is (a) stop rm complaining if it fails to remove something and (b)
stops "rm -i" from _asking_ before trying to remove some things such as file
you don't own.

Never use -f unless you are very sure that it is what you want; usually it
brings little value and only risk.

The reason so many people routinely use -f is that these days, many Linux
systems ship with a shell alias "rm=rm -i". That causes all interactive "rm"
commands to turn into "rm -i", which asks about removing files you don't have
write permission to, on the basis that maybe you didn't mean to remove the
file.

It prevents a lot of accidents (which, I suppose, is good when so many Linux
systems are in the hands of nonexperts), but the flip side is that humans,
being what they are, take to routinely adding "-f" to their "rm" commands just
to make them shut up.

The better fix is to disable the alias, so that "rm" just means "rm".

The big trouble with "rm -f" is that it doesn't report failure, so you might go
"rm something" and think it is removed when it is not. Not good.

Cheers,
Cameron Simpson <cs@zip.com.au>

__._,_.___

Posted by: Cameron Simpson <cs@zip.com.au>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (26)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

Re: [LINUX_Newbies] rm -f

 

On Fri, Mar 24, 2017 at 2:44 PM, Scott scottro@nyc.rr.com
[LINUX_Newbies] <LINUX_Newbies@yahoogroups.com> wrote:
> On Fri, Mar 24, 2017 at 07:11:01PM +0100, 'highskywhy@yahoo.de' highskywhy@yahoo.de [LINUX_Newbies] wrote:
>> the problem is NOT
>>
>> system files
>>
>> we wanna delete in win and libnux HTM files.
>>
>> RM brings the message: file is in use
>
> Then you have to figure out what is using it and temporarily stop the
> process. ps -aux|grep -i htm might help.

lsof is also your friend:

bladernr@galactica:/tmp$ tail -f testfile &
[1] 7731
bladernr@galactica:/tmp$ 1,2,3

bladernr@galactica:/tmp$ lsof |grep testfile
tail 7731 bladernr 3r REG
8,2 6 4068243 /tmp/testfile

shows that testfile is currently opened by tail.

__._,_.___

Posted by: J <dreadpiratejeff@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (25)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___