User Tools

Site Tools


linux:cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:cheat_sheet [2015/09/04 16:20]
127.0.0.1 external edit
linux:cheat_sheet [2016/11/03 06:24] (current)
ozan [FILE]
Line 70: Line 70:
 <code bash>rm <​file></​code>​ <code bash>rm <​file></​code>​
  
-** Removing directories**+** Removing directories **
 <code bash>rm -r <​dir1>​ <​dir2></​code>​ <code bash>rm -r <​dir1>​ <​dir2></​code>​
  
-** Removing files by forcing (ignores nonexistent files/​dirs)**+** Removing files by forcing (ignores nonexistent files/dirs) **
 <code bash>rm -fr <files dirs> # you can use -i to prompt before removal and -v for what is being removed</​code>​ <code bash>rm -fr <files dirs> # you can use -i to prompt before removal and -v for what is being removed</​code>​
  
Line 90: Line 90:
 ** output the contents of file as it grows, starting with the last 10 lines ** ** output the contents of file as it grows, starting with the last 10 lines **
 <code bash>​tail -f <​filepath></​code>​ <code bash>​tail -f <​filepath></​code>​
 +
 +** output the contents of a file or standard input line by line but in reverse order, printing last line first **
 +<code bash>tac [OPTIONS]... [FILE]...</​code>​
  
 ==== APT - Debian Package Upgrade/​Installation ==== ==== APT - Debian Package Upgrade/​Installation ====
linux/cheat_sheet.txt ยท Last modified: 2016/11/03 06:24 by ozan