This repository contains some useful tools to increase efficiency and productivity.
- ubuntu
- clone this repository.
git clone [email protected]:kealennieh/tools.git
- add the repository into your system path.
vim ~/.bashrc
export PATH=$PATH:/home/xxx/shell_tools
source ~/.bashrc
- enjoy the tools.
- copy the previous files into target folder.
sheCopyHead.sh -n <number> -d <target_folder>
eg: sheCopyHead.sh -n 10 -d ~/work
- copy the last files into target folder.
sheCopyTail.sh
eg: sheCopyHead.sh -n 10 -d ~/work
- display the size of current folder.
sheDu0.sh
eg: sheDuo.sh
- display the size of all the folders in current folder.
sheDu1.sh
eg: sheDu1.sh
- erase the duplicate row in file. this tool is used to git rid of the duplicate row in file.
sheEraseDuplicate.sh -f <file> -t <target>
eg: sheEraseDuplicate.sh -f test.txt -t target.txt
- find the string in files in folder.
sheFindStrInFile.sh -d <dir> -s <str>
eg: sheFindStrInFile.sh -d . -s test
- find the str in files in current folder.
sheGrepLocal.sh -s <string>
eg: sheGrepLocal.sh -s error
- kill the process started by python in cuda.
sheKillPythonInCuda.sh -i <number>
eg: sheKillPythonInCuda.sh -i 0
- kill zombie process
sheKillZombie.sh
- display the previous files, which are sorted by time.
sheLsTimeHead.sh
- display the memory
shePsMem.sh
- display the zombie process
shePsZombie.sh
- remove the files by time and store the latest file. this tool is used to remove the previous logger files in tensorboard.
sheRemoveByTime.sh
- copy files increamentally. this tool is quite useful when we copy large files.
sheRsync.sh -s <src_folder> -d <destination_folder>
eg: sheRsync.sh -s test -d ~/work
- start a http server in current folder.
sheSimpleServer.sh
- copy the file/folder to the target folder of another server by scp.
sheToRemote.sh -f <file>
sheToRemote.sh -d <dir>
eg: sheToRemote.sh -f test.txt
- display the panel of nvidia
sheWatchNvidia.sh
- check the number of row in file. this tool is used to check the file when we merge various file into one.
sheWcFile.sh -f <file>
eg: sheWcFile.sh -f test.txt
- remove the files by time and store the latest file.
cite yourself~