Last active
August 11, 2016 08:42
-
-
Save sahajamit/638268426bafb10138452294d181d08b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command that will look for files with an extension “c”, and has the occurrence of the string “apple” in it. | |
Find ./ -name “*.c” | xargs grep –i “apple” | |
To find a file: | |
find . -name "foo*" | |
************************************************************************* | |
rm -rf lampp (remove recursively and forcefully) | |
unmae -a | |
zip -r myfiles.zip myfiles | |
date '+%A %W %Y %X' | |
chmod -R 777 actual_files/ | |
************************************************************************************ | |
Linux | |
sudo yum install git | |
sudo yum update docker | |
# nohup pullftp.sh & | |
Type exit or press CTRL + D exit from remote server. | |
# exit | |
date +%Z | |
sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime | |
You can use sudo pkill -f 'java -jar' | |
ps -ef | grep java | |
ps aux | grep java | |
//To see the free memory (RAM) | |
free -m | |
tail -n 20 Equinox_Prod_log.txt | |
To kill a process with pid | |
kill -9 PID | |
sudo yum install git | |
************************************ | |
How to move to end of line in vim | |
Just the $ (dollar sign) key. | |
yum list | grep docker | |
cp -a /source/. /dest/ | |
chmod -R 777 dplat/ | |
2) How to find current running processes in unix server? | |
$ ps -ef | |
4) How to find Exception in log files available in current directory and how to find number of occurrence? | |
$ grep 'Exception' log1.txt | wc -l | |
5) find all files in current and subdirectories which contains 'log' name? | |
$ find . -name ‘log' | |
9) How to make any script file executable? | |
$chmod 755 *.sh | |
sudo reboot | |
awk -F, '$2 ~ /jpn|por/ {print}' file1.csv > file2.csv | |
awk -F, '$7 ~ /portfolio1|portfolio2/ {print}' file1.csv > output.csv | |
awk -F, '$5 ~ ([^"]*) {print}' file1.csv > output.csv | |
cat BoEGlobalShock2_trade.csv | cut -f7 -d , | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment