Skip to content

Tag: linux

How to bulk add date before file extension on Linux

Lets say I have a.txt, b.txt and I want to add the date to see: a_MMDDYYY.txt, b_MMDDYYYY.txt I’m trying to use xargs and basename in the following way: I know that the end of my command is not correct, I’m just trying to figure out how to use it and how to inject the builtin “date” in…

How to get PID of java.lang.Process in linux by JAVA

I think out two method to resolve this question but they can’t reach the expectation . I use the ‘Process’ to exec “ps -ef” I can through this method to get all lines and I can filter them by my running command.But If I have many same command process.This isn’t work. I use …

Change Anaconda Interpreter

My system has a set-up python environment (2.7) to work with certain programs, and I also want to install Miniconda3 for Python 3.6. When I call python in terminal, it will start the system python from /usr/bin/python. To achieve this, I removed the python symbolic link in ~/miniconda/bin/. Now, when I execut…