ssh pi@raspberrypi.local
To search string inside filles of a given folder
grep -rl "string" /path
To get size of all folders inside a folder -> du -sh */
git swtch remote branch if its not getting downloaded
https://stackoverflow.com/questions/2294313/how-to-download-a-branch-with-git
copy file to server using scp (if it has pem file)
To search string inside filles of a given folder
grep -rl "string" /path
To get size of all folders inside a folder -> du -sh */
git swtch remote branch if its not getting downloaded
https://stackoverflow.com/questions/2294313/how-to-download-a-branch-with-git
git checkout -t origin/branch-name
copy file to server using scp (if it has pem file)
scp -i mykey.pem somefile.txt root@my.ec2.id.amazonaws.com:/
Kill a process on a port ubuntu
You want to use backtick not regular tick:
sudo kill `sudo lsof -t -i:9001`
If that doesn't work you could also use $()
for command interpolation:
sudo kill $(sudo lsof -t -i:9001)
Comments
Post a Comment