for filename in *.jpg; do newname=echo $filename | sed ‘s/xxx/yyy/g’; mv $filename $newname; done
for filename in *.jpg; do newname=echo $filename | sed ‘s/xxx/yyy/g’; 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 you can mount it as usual: sudo mkdir /media/my_device sudo mount /dev/mapper/my_encrypted_volume /media/my_device To lock the container…
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 unmounted or has otherwise become partially corrupted run fsck.hfsplus (provided here by Jayson) as such:
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 # After each command, append to the history file and reread it export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history…
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 can run a simple command as noup verdaccio & . It might happen that the process…
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 MX record hosted somewhere else. In this case with Dig command you can check where the DNS…