-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.txt
60 lines (47 loc) · 1.07 KB
/
commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
tar
================================================================================
** Create TAR
*
tar cvfz
** Extract TAR
*
tar xvfz
** Large/numerous TAR Create
*
tar cvf - source |gzip > destination.tar.gz
** Large/numerous TAR Extract
*
gzip -d < source.tar.gz|tar xvf -
gdb
================================================================================
** Follow threads (use child), don't (use parent)
*
set follow-fork-mode child|parent
** Print char
*
x/16c
ubuntu-specific
================================================================================
** Change version alternatives (ex: java)
*
update-alternatives --config java
uncategorized
================================================================================
** Find a file
*
find . -name "filename"
** Timestamp
*
date +%s
** Tail syslog
*
dmesg | tail
** SVN status w/o ?
*
svn st | grep -v -e "^?"
** Get certain info about process consistently
*
top -n 1 | grep rsyslog | awk '{print $5, $6, $8}'
** Mount network drive
*
sudo mount -t cifs -o username=username //x.x.x.x/sharename /mount/point