Archive for the ‘command line’ Category

Linux File Permissions -> number reference

Thursday, June 13th, 2019

This is kind of silly, but sometimes I just need to quickly find common ones:

  • drwx—r-x = 705
  • -rwx—r-x = 705
  • drw—-r– = 604
  • -rw—-r– = 604
  • drw-r–r– = 644
  • -rw-r–r– = 644
  • drwxr–r-x = 745
  • -rwxr–r-x = 745
  • drwxr-xr-x = 755
  • -rwxr-xr-x = 755

Mysql Command Line Import

Monday, March 12th, 2012

navigate to the folder containing the .sql file you’d like to import

>mysql -user -password databaseToImportInto < newData.sql

return – no ; (unless you are IN mysql>)

password:

example:

>mysql -root -p someDB<newData.sql (return)

password: (return – default config has none, unless you’ve, hopefully, changed it, then enter it)