Skip to content
Browse files

Notes on bash, git, yum

Signed-off-by: Carl Helmertz <chelmertz@op5.com>
  • Loading branch information...
1 parent 95a3ef3 commit c8e1f3c3ee876e82dc10bade517ca6bef9bb576d @chelmertz committed May 4, 2012
Showing with 18 additions and 0 deletions.
  1. +10 −0 src/w/bash.md
  2. +6 −0 src/w/git.md
  3. +2 −0 src/w/yum.md
View
10 src/w/bash.md
@@ -33,3 +33,13 @@ Redirect STDERR
# find reason to why can not umount
lsof | grep <name of device>
+
+## files
+
+List the 100 largest files in a directory
+
+ find . -ls | sort -rn +6 -7 | head -100
+
+List the current dir's dirs' content
+
+ du */ -hs | sort
View
6 src/w/git.md
@@ -18,3 +18,9 @@ If you want to add some changes that you'd want included in the previous un-push
git commit -am "just a commit"
# make changes
git commit --amend -a
+
+# add parts of a diff
+
+ git add -p # y/n
+ git checkout
+ git reset
View
2 src/w/yum.md
@@ -15,3 +15,5 @@ Including dependencies:
yum install <package>
In %postun, you can `test $1 -eq 0` to make sure that's it's an uninstall and not a reinstall.
+
+Sometimes you need to remove a package which can't be removed through `rpm -e` or `yum remove` since it has an error in `%postun`. Then you'd have to `rpm -e --noscripts --nodeps <package>`

0 comments on commit c8e1f3c

Please sign in to comment.
Something went wrong with that request. Please try again.