-
screen capture command
import myscreenshot.jpeg
then use your mouse to create a margin of the area you want to take a sc. shot.
"SEARCH FIRST... ASK SECOND" -mdwatts-
-
xmms-shell
/etc/init.d/xdm stop to actually kill your x display manager (change it around so you are going to the right directory.)
for virutal consoles, sometimes you need to hold alt in the switch.
mp32ogg is fun
irc.freenode.net #justlinux The Not So Official JL IRC Channel.
¤ Debian ¤ Apt-Get ¤
-
the command script
If your trying to get compile a program and get errors and the errors fly by so you can't capture them.
If you want to create a document of some task that your doing at the command line try script
script will start an interactive session and create a transcript of the entire session when you exit. The output will be written to a file named typescript
man script
very cool
-
someone mentioned customizing your bash prompt. i second that! you can make it way more useful! here's a really good how-to
http://www-106.ibm.com/developerwork.../l-tip-prompt/
-
The world into your scripts !!
Take note how to use lynx to dump text into a file;
The world into your scripts........
Last edited by rbermejo; 11-14-2002 at 09:49 PM.
A man without religion is like a fish without
bicycle.
-r.
-
Originally posted by slapNUT
alias path='echo -e ${PATH//:/\\n}'
Put that in .bashrc for a really way to display your path.
Just edited your .bashrc and want to check out your fancy new alias or a new prompt? Don't logout and login! Just do this to immediately update your user settings:
. ~/.bashrc
Also works if you edit .bash_profile
. ~/.bash_profile
also:
source ~/.bashrc
works
Hug a geek, save a life...
-
ctrl-alt-backspace to restart X
The greatest trick the devil ever pulled was convincing the world he didn't exist.
-
Well, ctrl-alt-backspace will kill X, not restart it. If your distro sets up inittab the right way, then X can be set up to restart whenever it dies, so if that's what's going on, then ctrl-alt-backspace will indeed restart X. But if not, if you're in runlevel 3 for example, then ctrl-alt-backspace won't restart anything, just kill the X that's already running.
-
Has anyone posted this goodie yet? It's my favorite!
finger @kernel.org
-
Originally posted by slapNUT
Has anyone posted this goodie yet? It's my favorite!
finger @kernel.org
Please explain. What does finger do?
My new Much Improved, Long waited, Website: http://www.mooktakim.freeserve.co.uk
My latest screen shot. Visit my My Server.
Registered Linux user #270049
-----------------------------------------------------
** AMD Athlon XP 2001+, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler CNPS6000-CU, 3x 80mm Fans, ADSL Router, **
-----------------------------------------------------
-
I've tried it and printed some kernel versions, pretty cool ... me thinks it's some kind of user query thing on a network.
man finger
"SEARCH FIRST... ASK SECOND" -mdwatts-
-
If you want to cut off all ICMP ECHO requests you don't need to mess with iptables or anything,
Just ;
issue the following,
#echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
All ICMP echo packages are ignored from now on.
You have to issue this command everytime your kernel is rebooted, putting this line into /etc/rc.local (might be other file if it's not RH) file will automaticly make it start everytime the machine is rebooted.
-
Append text to the end of a file:
cat >> filename
The Most Quoted Pipe In The World:
who | wc -l
tells you how many users are logged in.
wc is an awesome tool, especially in combination with sed.
I'm gonna hope this command works:
cat filename | sed -e 's/word//' | wc -w
This *should* remove all instances of 'word' and then count the number of words left. Its actually quite useful.
This is where sed is awesome. I do this to keep an original around:
cp filename.py filename.py.backup
sed -e 's/idmp3/id3read/' \ filename.py.backup > filename.py
regexps are your friend. Learn them.
I haven't had access to a Linux box in a while, so...
-
To write a *new* file (it will overwrite files beware!) do:
cat > filename
Then type what you want in there. Then when you're done press CTRL+D and there you go!
Hug a geek, save a life...
-
Sheltons Tips for newbies (from a newbie)
Hi
Here is a small list from a newbie to new newbies:
1. use ALT and F2 (together) to quickly run an application eg ALT F2 and enter Kmail into prompt will bring up KMail.
2. Cntrl and Escape to look at all your process running and sleeping (very handy)
3. When copying text, just highlight with the mouse over text and point to required place to paste then press the center button on mouse (too easy! and handy!)
4. Always place your new applications you install in the /usr/local/bin directory
5. The gear icon represents your .exe files in Linux and most can be found in
/usr/bin
and
/usr/sbin
Any others have any nice tips or would like to comment on these, please do so!
Cheers,
Shelton.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|