mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
add cheatsheet for df iwconfig ls and rm
This commit is contained in:
parent
545c35722a
commit
d9bce2f3c4
2
cheatsheets/df
Normal file
2
cheatsheets/df
Normal file
@ -0,0 +1,2 @@
|
||||
# Printout disk free space in a human readable format
|
||||
df -h
|
8
cheatsheets/iwconfig
Normal file
8
cheatsheets/iwconfig
Normal file
@ -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}
|
11
cheatsheets/ls
Normal file
11
cheatsheets/ls
Normal file
@ -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
|
5
cheatsheets/rm
Normal file
5
cheatsheets/rm
Normal file
@ -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
Block a user