Search files by name

find /path/of/file -name 'name*file*.*'

Search files by containing text

grep -rnw '/path/to/somewhere/'-e "pattern"

    -r or -R is recursive,
    -n is line number, and
    -w stands match the whole word.
    -l (lower-case L) can be added to just give the file name of matching files.
    Along with these, --exclude or --include parameter could be used for efficient searching. Something like below:

grep --include=\*.{c,h}-rnw '/path/to/somewhere/'-e "pattern"

This will only search through the files which have .c or .h extensions. Similarly a sample use of --exclude:

grep --exclude=*.o -rnw '/path/to/somewhere/'-e "pattern"

Above will exclude searching all the files ending with .o extension. Just like exclude file it's possible to exclude/include directories through --exclude-dir and --include-dir parameter; for example, the following shows how to integrate --exclude-dir:

grep --exclude-dir={dir1,dir2,*.dst}-rnw '/path/to/somewhere/'-e "pattern"

This works very well for me, to achieve almost the same purpose like yours.

For more options :

man grep

Create database dump

1. Login to the system

ssh <username>@<ip>

2. create a dump

mysqldump --opt -p -u <user> <database> > filename.sql

-p = use a user password

> filename.sql = the file will be created if it not exists

Load database dump

1. Login to the system

ssh <username>@<ip>

2. load a dump

mysql -v -u <user> -p <database> < filename

-v = show the output

< filename = the name of the dump file (can be filename.sql too)

 

There are two ways to configure a license file:

  1. Upload your .lic file manually to http://localhost:8080/alfresco/service/enterprise/admin/admin-license
  2. add a property to the alfresco-global.properties file - dir.license.external=/path/to/license/folder

 

Creating a custom configuration file: portal-log4j-ext.xml

The first step is to get a copy of the original configuration file. Depending on our environment the portal-log4j.xml can be found in:

  • Liferay's sources: portal-impl/classes/META-INF/
  • Tomcat bundle: inside $TOMCAT/WEB-INF/lib/portal-impl.jar in META-INF/

Make a copy of that file and rename it as portal-log4j-ext.xml. It is recommended that you only keep in that file those entries that have been modified, delete the other entries, since they'll be loaded from portal-log4j.xml.

The file has to be deployed inside a directory $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/META-INF

For more informations see here:

liferay.com

Share:

java -jar bin/alfresco-mmt.jar install amps_share/javascript-console-share-4.2.x-0.6.0-RC1.amp tomcat/webapps/share.war

Repository

java -jar bin/alfresco-mmt.jar install amps/javascript-console-repo-4.2.x-0.6.0-RC1.amp tomcat/webapps/alfresco.war