pkill <process_name>: Kills process by namehtop: Shows activity monitordf -h: Shows free disk space (global)du -sh Desktop: Shows disk usagefree -m: Shows free ram in mb (works not on mac)ls -all -block-size=MB: Shows ls with size in mb (works not on mac)scp /localPath/file.txt user@hostname:/remotePath/file.txt: Copy file from local host to ssh serverssh user@hostname <command>: Runs command over ssh
tar xfv archiv.tar: Extract tartar cfv archiv.tar file1 file2: Create tarzip -r archiv.zip dir1 dir2: Zipunzip archiv.zip: Unzip zip
docker build -t <image_tag>:latest .: Build local Dockerfile to image with custom tagdocker run --rm -d --name <container_name> <image_tag>: Run container dispatched with custom name from image and remove it after termination
ssh-keygen -p
(on client)
ssh-keygen: Generates private and public certssh-copy-id userid@hostnameShare public cert with serverssh userid@hostname: Login to server without pw
mount | grep mnt: Check already mountedsudo lsblk: Get disks for mountsudo mount /dev/sdd2 /mnt/mountExt: Mount (create dir before)sudo umount /dev/sdd2: Unmount
for file in mb_input/*
do
filename=${file#*/}
echo "Proc now"
echo $filename
printAns=`./darknet detect cfg/yolov3.cfg yolov3.weights mb_input/$filename`
cp predictions.jpg mb_output/$filename
convert mb_output/$filename -background Khaki -pointsize 20 label:"$printAns" -gravity Center -append mb_output/$filename
echo $printAns >> result.csv
echo $printAns
done