ARM Technologies Linux General
General Linux help
Some regular tips at hand
Installing composer
To install composer on a Linux system, curl library must be present. The following command will install the composer at /usr/local/bin. You will need the super user permission.
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Search files and texts
To find by file name:
find ~/ -type f -name "somefile"
Search files containing a text
grep -i -H -r "sometext" .
Search and delete .svn recursively
find -name .svn -exec rm -irfv {} \;
Keeping SSH connectivity alive for longer duration
ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=9999 user@serveraddress
Linux export at your rescue for special characters
Sometime we have special characters like "!" in password that creates trouble to execute command in CLI. You can overcome it with export
export PASS='some!p@ss'
curl -u ${PASS} http://yourremote.url
Transfer files with scp command
scp -P[port no] [local file path] user@remoteserver:[remote path]