Hi my homework is to " end operation of less browsers" using fuser, so i assume i need to close terminal running less comand using kill. I wrote in terminal sudo fuser -v -k -i . and i have some list. How using that i can kill less comand whcih is in the image below?
How to kill comand in terminal in linux/ubuntu
416 Views Asked by Matthew At
2
There are 2 best solutions below
Related Questions in UBUNTU
- Git init --bare giving error fatal: Out of memory? mmap failed: No such device
- EMACS-Live + Slime error at startup
- Vagrant - Ansible error installing Apache
- Openfire Smack Connection issue
- Error in Ruby on Rails on Ubuntu 14.04
- Django webapp (on an Apache2 server) hangs indefintely when importing nltk in views.py
- C++ string and char* manipulation acting weird
- Data transfer between Ubuntu/Windows to network
- How to upgrade Node js version to 0.12.4 on Ubuntu
- How do I install Intellij on Ubuntu 15.04?
- Can't run django-admin startproject mysite (ubuntu, django.core.exceptions.ImproperlyConfigured)
- How to add apt key with --recv-keys instead of --recv?
- Express - Multiparty/Formidable unable to parse files greater than 100kb on Ubuntu. Callback of Parse is not called at all
- Unable start mongoose im in ubuntu. process crashes
- Tkinter application topmost, even over fullscreen
Related Questions in KILL
- kill & wait in one step
- kill process/ end process of bluestacks
- Kill a child-script when it emits a certain string
- Wildcard with Service Stop/Start
- Checking and killing hanged background processes in a bash script
- Android kill service when app relauch and close?
- How force close all IE processes - with alert() on form_unload
- Close Image with subprocess
- Windows: Killing every process that stops a folder from being deleted
- Unable to kill remote processes with ssh
- Python Subprocess CREATE_NEW_CONSOLE Windows Not Closing on kill()
- exit() the program from parent before child process has terminated
- kill not working in while loop
- Start process and wait until logfile has specific entry
- Bash: Killing all processes in subprocess
Related Questions in FUSER
- How can I figure out which process is opening the certain tcp port?
- Count how many processes hold a file on a linux system
- how does fuser report on sockets as non-root user?
- fuser command output process ID extraction
- How to check from within docker for an open file on a mounted dockerhost filesystem/volume
- Why does sshfs cause these Emacs artifacts?
- How to check if file is being copied under macOS
- How to kill comand in terminal in linux/ubuntu
- fuser bash script returning unanticipated output
- What is the Windows batch equivalent of "fuser -k <folder>"?
- How fuser identified the issue - Cannot stat file /proc/1234/fd/3: Stale file handle?
- specifying IPv6 addresses to fuser
- Smartest and cleanest way to see if there's a process capturing v4l2loopback a device
- How to find process of .nfs files in directories and kill all
- Kill all processes on specific port via Jenkins
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

Not going to get you a full answer as this is homework.
Could you use fuser in a similar way that ps? There are often smarter ways doing these, but noticed often this grep/cut approach works in many places. For example when I want to see processes of specific name I grep the output by the string 'less'
Then pipe it to
cut(or awk) to get a specific field (the process number)https://man7.org/linux/man-pages/man1/cut.1.html
And then wrap it in the backticks to be fed into the kill command. Example to find java process and kill it:
or
Can you use similar ideas to your problem?