Last active
May 30, 2018 12:57
-
-
Save yurko/d4766b1565f665aff1a3356795134fd7 to your computer and use it in GitHub Desktop.
shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kill by port | |
sudo kill -9 $(lsof -i :3000 -t) | |
# wget with range | |
wget --user user --password password http://example.com/{0..n}.jpg | |
# scp | |
scp [email protected]:projects/dev.log /home/dev/dev.log | |
# Bulk rename | |
for f in *controller*; do mv $f $(echo $f | sed 's/^foo/bar/g'); done;` | |
# Symlinks | |
ln -s source target | |
find . -type l -ls | |
unlink /path/to # remove symlink |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment