Is there any command to close any already opened file browser using command in linux. I need so. plz help me.
shivnath 0 Newbie Poster
Recommended Answers
Jump to PostYou can kill the process if you want...
ps -e | grep firefox
will give you the processnumber of the Firefox process.
kill processnumber
will kill the process.
Jump to PostYou can use the same commands (ps & kill) to terminate any application.
I needed something similar once and wrote a small script for it. To automate the commands, I made following (used firefox as example):ps -e | grep firefox | sed 's/\(.[0-9]*\).*/\1/' | xargs kill
Jump to PostWhat file browser are you using? Nautilus?
Try:
ps -e | grep nautilus | sed 's/\(.[0-9]*\).*/\1/' | xargs kill
I just used firefox as an example...
All 11 Replies
Firewolf 0 Light Poster
shivnath 0 Newbie Poster
Firewolf 0 Light Poster
shivnath 0 Newbie Poster
Firewolf 0 Light Poster
shivnath 0 Newbie Poster
Bilal Ahmad 0 Newbie Poster
Huston229 0 Newbie Poster
samsameer 0 Newbie Poster
Computerphile 0 Newbie Poster
robinbolt 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.