Linux Misc Commands Flashcards

1
Q

Disable history logging

A

unset HISTFILE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Record remote mic

A

ssh user@ arecord - | aplay -

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Compile C,C++

A

gcc -o outfile myfile.c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Reboot

A

init 6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Shutdown

A

init 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

List of log files

A

cat /etc/syslog.conf | grep -v “^#”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Strip links in url.com

A

grep ‘href=’ | cut -d”/” -f3 | grep | sort -u

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Make random 3MB file

A

dd if=/dev/urandom of= bs=3145728 count=100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly