Replace a string in all files recursively usind sed ( replaces repository.jboss.com with anonsvn.jboss.org/repos/repository.jboss.org)
grep -rl repository.jboss.com . | xargs sed -i 's/repository.jboss.com/anonsvn.jboss.org\/repos\/repository.jboss.org/'
Add launchers (*.desktop, icon - comment - name) here
/usr/share/applications
Find a file on the file system
updatedblocate test.xml
Find out which kernel you are using
uname -r
Find string "proxy" in all files
sudo find . -type f -name "*" -exec grep -l "proxy" {} \;
find . -name "*" -exec grep "proxy" {} \; (donne tous les lignes avec Test_1)
find . -name "*" -exec grep -l "proxy" {} \ ; (donne tous les fichiers avec Test)
grep -r 'proxy' *
Making a script executable
chmod +x
Finding all my files with string "myfile" including soft link references directories
find . -user me -name *myfile* -follow
Displaying directory structure
ls -rtl bbb (-R subdirectories)
Monitoring changes within a file
tail -100 fichier
tail -f file (monitoring)
grep -F ‘abc efg’ (Leerstelle = OR)
grep -i -n (line number) testChar file.txt
grep « VALOTRACE= » `(Alt + Shift + 7) find .`
cat fichier | grep blub
Displays full path of file being executed
which java
grep valopurgesolde.x communs/ces/x (pour voir qu’est-ce que le processus fait)
kill -9 -1 (killt das zuletzt angemeldete Konto)
cd - (go to root)
du -sk . (Wie viel Speicherplatz belegt)
df -k (kilo) . (combien il reste sur le filesystem)
ps -u valqua11 (kill -9 #1 #2)
ln -s link name (ln -s ${HOME}/brackmann roli)
Displaying all exports of the shell
typeset
Process keeps on running in background even when the executing shell is killed
nohup your_command
Gets the 4th columns of the server.log and deletes all the doubles
cat server.log | awk '{ print $4; }' | sort -u > server4thcolumndistinct.log
Deletes all temporary files followed by '~'
find ./ -name '*~' | xargs rm
No comments:
Post a Comment