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
420 Views Asked by Matthew At
2
There are 2 best solutions below
Related Questions in UBUNTU
- Error: local variable 'bramka' referenced before assignment
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Can't connect to local postgresql server from my docker container
- How to install libfuse2 on Ubuntu 22.04
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Can anyoone help me with this problem while trying to install hadoop on ubuntu?
- Ubuntu wsl2 in windows, my /etc/fonts/fonts.conf keeps reloading
- psutil.sensors.temperatures() only delivers {}
- Issue with [proxy_fcgi:error] [pid 1539011] (70007)The timeout specified has expired
- Viber is not working on Ubuntu 22.04 Jammy
- why is ubuntu 18.4 still showing as a linux subsystem when i have uninstalled it?
- Why when I want to open a folder from Visual Studio Code does the screen go crazy?
- What is this error when trying to update Ubuntu?
- Angular on IONOS(?) throws an error with npm
- Tensorflow can't find TensoRT
Related Questions in KILL
- Error message when killing process in bash
- Kill Process When Specific Process is Running
- linux: cannot use kill with verbose
- How Can I handle subprocess when a process is killed by lack of memory?
- Is it a coincidence that my service is killed almost always after Thread.sleep()? There are other ways for making an android service "unkillable"?
- Find, stop and restart a process with bash script
- How do I kill/remove the process currently using a port on localhost in Windows?
- The process of JVM was killed by an unknown reason
- Properly run and kill background process in a python script/pytest
- Stop Flutter Background Service on App Termination
- Android Activity doesn't seem do be destroyed after ondestroy
- killing child process in Node.js
- How can I kill a php-fpm process without the signal being logged in the fpm log
- How to pass kerberos cred from Java
- How to kill YARN job using RM REST API
Related Questions in FUSER
- How to find process of .nfs files in directories and kill all
- Smartest and cleanest way to see if there's a process capturing v4l2loopback a device
- How to kill comand in terminal in linux/ubuntu
- How to check from within docker for an open file on a mounted dockerhost filesystem/volume
- fuser command output process ID extraction
- Avoid bash command output to logged
- Replace file only if not being accessed in bash
- How to determine whether a file is open in a bash script on FreeBSD
- .nfs file can't be removed - resource busy, but PID unknown
- Unix how to store fuser command output to a variable
- fuser command in centos print an unwanted output in bash script
- How fuser identified the issue - Cannot stat file /proc/1234/fd/3: Stale file handle?
- Kill all processes on specific port via Jenkins
- Count how many processes hold a file on a linux system
- fuser equivalent in Powershell?
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 # Hahtags
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?