Bedigit
  • Products
  • Add-Ons
  • Support
A Software Development Company A Software Development Company A Software Development Company
  • Products
  • Add-Ons
  • Support

Bash

0
By admin
In Bash
Posted September 23, 2018

How to display files with permission number in Mac Terminal?

Hopefully this will work for you: stat -f "%p %N" * | awk '{$1=substr($1,length($1)-2)}1' Output: 755 Benchmark 755 BoundedBuffer 755 CImgGenerateVideo 755 CImgInterpolate 755 Flask 755 Folder [...]

READ MORE
0
By admin
In Bash, Linux
Posted September 17, 2018

How do I find all files containing specific text on Linux?

I have been using Linux for a while on my server and have a large collection of the text file everywhere. I’m interested in learning about searching a text string. Can you tell me – how do I find [...]

READ MORE
0
By admin
In Bash, Linux
Posted September 17, 2018

Unix – Remove folders recursively

To delete a whole folder and its content recursively, you can use: rm -rf foldername/ To delete all files and folders in the current directory, without deleting the directory itself, you would [...]

READ MORE
0
By admin
In Bash, MySQL
Posted September 17, 2018

Backup and Restore MySQL database using Bash

Backup Backup a database from command line using mysqldump: mysqldump -u [username] -p[password] [database] > backup.sql Examples: mysqldump -u root -p theDatabase > backup.sql Backup [...]

READ MORE
0
By admin
In Bash, Linux
Posted September 17, 2018

SSH – Copy a directory from a remote server

Use on a command line to copy a whole directory on a remote server down to your computer. Requires SSH access to remote server. scp -r username@www.remoteserver.com:/pathto/dir/ mycopy

READ MORE
0
By admin
In Bash
Posted September 17, 2018

SSH – Sync a file or dir to remote location

The -P handles partial transfers, I’m using this for big audio/video files. rsync -P -az -e ssh sourcedir username@andric.us:~/targetdir/

READ MORE
0
By admin
In Bash
Posted September 17, 2018

SSH – Copy between systems with archiving

ssh root@openfiler "(cd /mnt/openfiler/engineering; tar -czf - .)" | ssh root@provexport "tar -xzvf - -C /export/groups/engineering/FromOpenfiler"

READ MORE
0
By admin
In Bash, Linux
Posted September 17, 2018

Bash – Find files modified in the last week

Change / to the root directory you wish to search in. Change -7 to +7 for files changed more than a week ago. find / -mtime -7 -print

READ MORE
0
By admin
In Bash, MySQL
Posted September 16, 2018

Backup your database with a Shell script

I propose this little script for a recurring backup of your database: #!/usr/bin/bash date="`eval date +%Y%m%d`"; host="localhost" username="mysql-user" password="mysql-password" [...]

READ MORE
Categories
  • Apache (19)
  • Bash (9)
  • CSS/HTML (3)
  • Git (1)
  • JavaScript (7)
  • jQuery (4)
  • Laravel (18)
  • Linux (6)
  • MySQL (18)
  • Nginx (2)
  • PHP (42)
  • Programming (3)
  • Regex (6)
  • Tools (10)
  • Uncategorized (1)
  • Vue.js (1)
  • WordPress (1)




© Bedigit - All Rights Reserved.
  • Icon Generator
  • Support Policy
  • Terms and Conditions
  • Blog