mirror of https://github.com/cheat/cheat.git
add cheatsheet for df iwconfig ls and rm
This commit is contained in:
parent
545c35722a
commit
d9bce2f3c4
|
@ -0,0 +1,2 @@
|
||||||
|
# Printout disk free space in a human readable format
|
||||||
|
df -h
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Display wireless settings of the first wireless adapter
|
||||||
|
iwconfig wlan0
|
||||||
|
|
||||||
|
# Take down / up the wireless adapter
|
||||||
|
iwconfig wlan0 txpower {on|auto|off}
|
||||||
|
|
||||||
|
# Change the mode of the wireless adapter
|
||||||
|
iwconfig wlan0 mode {managed|ad-hoc|monitor}
|
|
@ -0,0 +1,11 @@
|
||||||
|
# Displays everything in the target directory
|
||||||
|
ls path/to/the/target/directory
|
||||||
|
|
||||||
|
# Displays everything including hidden files
|
||||||
|
ls -a
|
||||||
|
|
||||||
|
# Displays all files, along with the size (with unit suffixes) and timestamp
|
||||||
|
ls -lh
|
||||||
|
|
||||||
|
# Display files, sorted by size
|
||||||
|
ls -S
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Remove files and subdirs
|
||||||
|
rm -r path/to/the/target/
|
||||||
|
|
||||||
|
# Ignore non existent files
|
||||||
|
rm -f path/to/the/target
|
Loading…
Reference in New Issue