Rename multiple files
for filename in *.jpg; do newname=<code>echo $filename | sed 's/xxx/yyy/g'</code>; mv $filename $newname; done
for filename in *.jpg; do newname=<code>echo $filename | sed 's/xxx/yyy/g'</code>; mv $filename $newname; done
In file /etc/ssh/sshd_config Uncomment the second line, and, if needed, change yes to no. Then run
Your volume is probably encrypted with LUKS, here’s how to mount it: You need: sudo apt-get install cryptsetup To decrypt the volume: sudo cryptsetup luksOpen /dev/sda1 my_encrypted_volume Now…
First, make sure that you have hfsprogs installed. Example installation command: Next, mount or remount the HFS+ drive; commands need to be as follows: Finally, if the drive was improperly…
for i in *.pdf; do mv $i ${i/pdf/jpg}; done
mysqldump –add-drop-table -a -u username -p database | gzip > prod-db-dump.sql.gz Note: The password is not passed to the command line, but it will asked at the prompt
dd the following to ~/.bashrc # Avoid duplicates export HISTCONTROL=ignoredups:erasedups # When the shell exits, append to the history file instead of overwriting it shopt -s histappend #…
mysqldump –add-drop-table -a -u <user> -p <dbname> | gzip > db-dump.sql.gz
Let’s say you need to run a process like a lightweight private npm proxy registry such as Verdaccio and you do not want to use a Docker container.…
You might want to find information about a particular domain and check where it is hosted. i.e.: You could have a domain hosted by Godaddy and have your…