|
 Some useful Bash Linux alias taken from my user profile. If you have a long command that you type frequently consider putting it in as an alias. In computing, alias is a command in various command line interpreters (shells) such as Unix shells, 4DOS/4NT and Windows PowerShell, which enables a replacement of a word with another string. It is mainly used for abbreviating a system command, or for adding default arguments to a regularly used command. [WikiPedia]
| Description | | | Find all directories and and chmod them to rwxr.xr.x | alias fixpermD='find . -type d -exec chmod 755 {} \;' | | Find all files and and chmod them to rw.r..r.. | alias fixpermF='find . -type f -exec chmod 644 {} \;' | | Both above and set recursively user and user group in one shot | alias fixUserAPerms='fixpermF; fixpermD; chown -R userA .;chgrp -R usergrp .' | | Make a directory and all files recursively read only, secure but a pain to maintain. see next | alias ro='find . -type f -exec chmod 444 {} \;find . -type d -exec chmod 555 {} \;' | | Make a directory and all files recursively read write, just the time to update your site. | alias rw='find . -type f -exec chmod 644 {} \;find . -type d -exec chmod 755 {} \;' | | Lower case all files in current directory | alias lowercaseallfiles='for f in *; do mv $f `echo $f | tr [:upper:] [:lower:]`; done' | | List all open connections to your server | alias listOpenConnections='lsof –i' | | List all internet connections | alias listinternetconnection='netstat –lptu' | | find the 10 biggest in size directories | alias dirsizes=’du -cks * | sort -n | tail –10' | | Show open port | alias openports='netstat -nape --inet' | Related Posts
-
Short description of how to accomplish some specific task in Debian Lenny. How to install Sun java 1.6 on Debian Lenny How to install Tomcat 6.x on Debian Lenny How to install MySQL on Debian Lenny 166 days ago
-
For day to day hacker, they may be more elegant ways to do it (PERL, AWK), but they have work well for me. Upper case file name or variable, Search and replace in all files content recursively, Renaming all files recursively, Renaming all directory recursively, Copying a set of files from one directory to the other and preserv 232 days ago
-
My idea is to be able to run my production server (STRATO- OpenSuse) hosting www.waltercedric.com in a VMWARE instance. So I can test and make change to the operating first there before bringing down my host for several hours ;-) I would like to duplicate the whole LINUX system (lets call it PROD for now), including data and make 2 VMWARE 236 days ago
-
Cpufreqd is a small daemon to adjust cpu speed and voltage (and not only) for kernels using any of the cpufreq drivers available. Cpufreqd is not a userspace governor. Cpufreqd allows you to apply governor profiles from rules based on battery level, ac status, temperature (ACPI or sensors), running programs, cpu usage and (maybe) more 368 days ago
-
I've aquire this card for running my HPTC (notebook dell 9400, NAS) either under windows xp, or LinuxThe Sound Blaster Audigy 2 ZS Notebook also provides encompassing 7.1 surround sound for Dolby® Digital EX as well as DTS-ES⢠supported DVD movies; any DirectSound3D games and CMSS 3D virtualized 7.1 stereo music. Gamers will love the hard 1472 days ago
-
GnGeo is a NeoGeo emulator for Linux (and maybe some other UNIX).It use the following cpu core:The 68k core from the Generator project by James Ponder.Starscream 680x0 emulation library by Neill Corlett.Raze Z80 emulator by Richard Mitton.Z80 Mame core from the Mame project.YM2610 Mame core by Tatsuyuki Satoh.Finding the rpm for SuSe 9.3 is quite e 1651 days ago
-
These instructions were written using Knoppix version 3.7. It can be downloaded from http://www.knopper.net/knoppix/index-en.html. This document is available online at http://www.shockfamily.net/cedric/knoppix/.and is very detailed. I hope You will never have to use it ;-) , but just in case, write down this internet page :-( 1801 days ago
-
Hans Reiser, author of the ReiserFS program, created benchmarking tests designed to be fairly representative of the file-size distribution of most users. "Reiser4 does quite well on all benchmarks," he said. "With Reiser4, we took five different technical gambles, and all of them worked. Article at NewsFactor, a brief introductionOff 1829 days ago
-
This article shows
you how to improve the boot speed of your Linux system without
compromising usability. Essentially, the technique involves
understanding system services and their dependencies, and having them
start up in parallel, rather than sequentially, when possible.
Although undoubtedly an excellent system, a common criticism of Linux
1897 days ago
relatedArticles
|