Linux Misc Commands Flashcards
1
Q
Disable history logging
A
unset HISTFILE
2
Q
Record remote mic
A
ssh user@ arecord - | aplay -
3
Q
Compile C,C++
A
gcc -o outfile myfile.c
4
Q
Reboot
A
init 6
5
Q
Shutdown
A
init 0
6
Q
List of log files
A
cat /etc/syslog.conf | grep -v “^#”
7
Q
Strip links in url.com
A
grep ‘href=’ | cut -d”/” -f3 | grep | sort -u
8
Q
Make random 3MB file
A
dd if=/dev/urandom of= bs=3145728 count=100