From Gentoo Linux Wiki
[edit] Tip in itself
This template is a Tip Colection in itSelf
Of course you can use it, out of here.
But this Template can be alive.
[edit] howto Usage
You can use this template here, adding those lines of command that sometimes for us are difficult to remember and that are very useful.
You only have to choose the section to which concern and add the template of the following way between any other:
{{Tip InItSelf|Tip Description|Command line}}
If you add a new section, only have to assure that put the template between the beginning and the end of a table wiki.
[edit] Collection
[edit] Portage
| Tip: Construct a package and not to install it
|
| InItSelf ~#
| emerge -vBa nombrePaquete
|
|
|
|
| Tip: The environment update
|
| InItSelf ~#
|
env-update && source /etc/profile
|
|
|
|
| Tip: Emerge an specific version
|
| InItSelf ~#
| emerge -va =category/package-1.0
|
|
|
|
[edit] Bash/search/locate
| Tip: Locate libs that it lacks to an application (useful if we prepare binary of 32 bits in environments of 64 bits)
|
| InItSelf ~#
|
ldd `which application` | grep "not found"
|
|
|
|
| Tip: Show the alias of an order or his path (more complete that which)
|
| InItSelf ~#
| command -v command
|
|
|
|
| Tip: locate recursively files in a dir and make some action with them.
|
| InItSelf ~#
| find ~/public_html/cgi-bin -type f -name "*.cgi" -exec chmod 755 {} \;
|
|
|
|
| Tip: List the files that contain a word in itself.
|
| InItSelf ~#
| find src -type f -iname '*.c' -exec grep -l -i "variable" {} \;
|
|
|
|
| Tip: Build tar.gz tar.bz2 packages
|
| InItSelf ~#
| tar cfvz file.tar.gz ./dir && tar cfvj file.tar.bz2 ./dir
|
|
|
|
| Tip: Write an ISO image in a Pen Drive
|
| InItSelf ~#
| dd if=image.iso of=/dev/sda
|
|
|
|
[edit] screen
| Tip: To list sessions list
|
| InItSelf ~#
| screen -ls
|
|
|
|
| Tip: To Initiate session without to enter
|
| InItSelf ~#
| screen -dmS devel
|
|
|
|
| Tip: To enter Session: ( * leave with Ctrl-a d)
|
| InItSelf ~#
| screen -x devel
|
|
|
|
[edit] Network
| Tip: To see your net's IPs:
|
| InItSelf ~#
| nmap -sP 192.168.0.0/24
|
|
|
|