Difference between revisions of "HowToLinuxCommands"

From Lost In Wonderlands
Jump to: navigation, search
(How To)
(Activate core dumps)
Line 97: Line 97:
  
  
=== Activate core dumps ===
+
=== Activate core dumps and other systems limits ===
  
 
*https://www.akadia.com/services/ora_enable_core.html
 
*https://www.akadia.com/services/ora_enable_core.html

Revision as of 09:51, 22 May 2020

How To Something

NeXT Steps

 here everything has yet to be done !

coming soon :


Everything You Always Wanted to Know on git [seldom]... (But Were Afraid to Ask) a collection of links of interest

See also

guides

Unix Shell


useful commands

cd

cp

df

ls

ls
ls -al
ls -alf

ln

mv

mkdir

rm

touch

Find

grep

awk

sed

cat

less

vi

vim

ssh

scp

How To

How To

using grep

grep -rwl '/path/' -e "string"
grep -rwl '/path/' -e "string" | grep 'path_string'

combining find and command using exec

  • tous les dossiers appelés target
find -name target -type d
  • effacer tous les dossier nommé "target" executer un rm recursif, le dossier target est utilisé part maven entres autres
find -name target -type d -exec rm -r {} \;
  • chercher une chaine searched_string_in_file dans les fichers *.cxx
find . -type f -name "*.cxx" -exec grep "searched_string_in_file" {} \;
  • ajouter -print pour afficher le fichier conteneur
find . -type f -name "*.cxx" -exec grep "searched_string_in_file" {} \; -print 


  • filtrer le chemin d'access et afficher le fichier
find /path -path '*path_string*' -type f -exec grep -qw 'string' {} \; -print


Activate core dumps and other systems limits

  • activate for all users
ulimit -a
  • then set for a user
ulimit -c unlimited
  • system config files
/etc/security/limits.conf



  • Ubuntu

Apport is managing core dump (16.04)

sudo systemctl enable apport.service 
sudo service apport start.
/etc/apport/crashdb.conf
cat /proc/sys/kernel/core_pattern
 |/usr/share/apport/apport %p %s %c %d %P %E

location:

/var/crash/