Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d75d8ca
commit 5d838b9
Showing
11 changed files
with
202 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#Contributing Guidelines | ||
#Contributing guidelines | ||
|
||
Use the following Markdown style: <https://github.com/cirosantilli/markdown-styleguide> W2. | ||
|
||
If automatic assertions can be made for the entire file to be run, put it in a `.sh` file. Otherwise, put it on a `.md` file. | ||
If automatic assertions can be made for the entire file to be run, put it in a `.sh` file. Otherwise, put it on a `.md` file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#Linux Cheat | ||
# ![logo](logo.jpg) Linux Cheat | ||
|
||
Linux information and cheatsheets. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#/etc/issue | ||
|
||
Contains the message that is printed before login shells (Ubuntu Ctrl + Alt + 1). | ||
|
||
See: | ||
|
||
man issue | ||
|
||
<http://unix.stackexchange.com/questions/84280/is-etc-issue-common-file> | ||
|
||
Of course, since this is meant to be shown to end users, | ||
it serves as a broadcast message for CLI only environments, | ||
and should not be used to identify the distribution even though | ||
it usually contains the distribution ID by default. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#apt-file | ||
|
||
Search for and list package files. **very** useful to know: which package provides a missing file like a `bin/name` or `include/name.h`? | ||
|
||
sudo aptitude install apt-file | ||
apt-file update | ||
f= | ||
|
||
##search | ||
|
||
Search for file `"$F"` in packages. | ||
|
||
apt-file search "$f" | ||
|
||
Literal full path substring match | ||
|
||
Use Perl regex: | ||
|
||
apt-file search -x "a.c" | ||
|
||
Combo: search for an executable called `a2x`: | ||
|
||
apt-file search bin/a2x | ||
|
||
##Show | ||
|
||
Shows files in package `p`: | ||
|
||
p= | ||
apt-file show "$p" | ||
|
||
##Get info on packages before installing them | ||
|
||
List package dependencies | ||
|
||
apt-cache depends $PKG | ||
|
||
Find who depends on `$PKG` (reverse dependencies): | ||
|
||
sudo apt-rdepends -r $PKG | ||
|
||
Get basic information about a package: | ||
|
||
apt-cache show $PKG | ||
|
||
Get detailed information about a package: | ||
|
||
apt-cache showpkg $PKG | ||
|
||
sudo aptitude install debtags | ||
debtags tag ls $PKG | ||
|
||
Package naming conventions: | ||
|
||
-dev: headers and libs, no docs | ||
-doc: documentation | ||
-test: tests | ||
|
Oops, something went wrong.