Reputation
968
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 10
Newest
 Yearling
Impact
~83k people reached

Jan
30
revised Why not display characters which I typed in tty?
KBD markup. Shorted screenshot (less empty vertical space)
Jan
30
comment Find files that match a certain size and modification time?
If you only want bash scripting it get much harder. Especially since you do nto want to parse the output of ls (which is not guaranteed to be stable and which date format might very much depend on your locale settings).
Jan
30
suggested approved edit on Why not display characters which I typed in tty?
Jan
30
comment Why not display characters which I typed in tty?
So best guess is that when you used vim some setting messed up the settings? YOu could try to reset those with reset (Tomas's link seems to indicate it is part of ncurses) assuming you are a non root user with that reset in your path and are not calling an aliased shutdown - always fun...). stty sane is also mentioned and worth trying, though most of the time I have to follow that with an stty erase ^h to get backspace working again.
Jan
30
comment gunzip a folder with many files
+1 for explaining why gunzuip *.gz did not work.
Jan
30
comment Why not display characters which I typed in tty?
I doubt you typed in a TTY. (unless you took an old teletype, smashed the screen and put a keyboard inside). My guess is that you opened a shell on a normal (non graphics) screen and from the prompt typed echo abc, but it would be nice if you could confirm this and post the output (e.g. the result is an empty line, is there an error code, anything else, ... ?)
Jan
30
comment Find files that match a certain size and modification time?
du would work, but find seems a better tool, @OP: This is not a script writing (or a one-liner writing) service. We are happy to help you if you get stuck after spending some effort. But do try to solve this on your own first and include what you already tried in the post. You can add that using the edit link.
Jan
28
comment Debian Lenny Server Compromised - No Sign Of Intrusion Point?
+1 just for "you cannot trust any diagnostic tools you have on the system.". Take the system off line and diagnose it from a different OS (e.g. a liveCD). If you do not have the option to use a spare or to replace disks then boot from a live CD (or I guess a live USB these days), dd & natcat the disk image to someplace to research it later and then nuke from orbit.
Jan
13
awarded  Yearling
Dec
30
comment What is the difference between kill , pkill and killall
Two things: Why use kill -9 by default? -15 (please stop) and -1 (modem has hung up, please CLEANLY closed yourself) are much more polite. Secondly. Beware of using killall on non-linux boxes. It might behave differently. (E.g. on solaris it kills all. NOT FILTERED on process names).
Dec
24
revised Error copying file in mounted usb
Welcome to formatting your USB printer. Or mouse. (No, edited in pen drive, but really, this is important)
Dec
24
suggested approved edit on Error copying file in mounted usb
Dec
10
comment Validating IP addresses (IPv4 and IPv6)
IPv6 is more complex (as it supports compression of zeroes). Just IPv6? Try a ping 127.1 and see the result from IP v4
Dec
7
answered In a folder with many files how to do rm on lots of them
Dec
5
answered Is it possible to keep files on a disk partition without an OS?
Nov
21
comment How do I combine '-size` and '-exec rm' in find?
Just two quick questions: 1) Why rm -rf. Are it directories which you are recursively deleting? 2) There also is a -delete. No need to exec rm. And finally: deleting log files may or may not free up any space. If you are writing a script to keep your system clean then make sure that you do not wipe files from the system while they are in use. They will disappear from the directory listing, but still take up disk space if they were in use.
Nov
2
comment i want to print the line which starts with a paricular word and in the rest records print only 1st field
Could you explain a bit more verbose what that does (not the ned result, but how you get there). That will help other people with similar problems to adjust the answer for their future needs.
Oct
25
comment Terminal takes long time to start
Why not measure what it is doing and how long that takes? strace has an option (-c iirc) to show time stamps. Thus you can strace -c /usr/local/bin/bash and simply see which part takes a long time.
Oct
21
comment Analyzing existing FreeBSD installation
I would start by reading the documentation of the person who installed it. Regardless if it is a BSD, a linux OS, a windows OS or whatever else, if it is important then there will be documentation describing what was installed and why it was installed.
Oct
5
comment Check whether an IP belongs to a specific range
Nopte that the aaa.bbb.ccc.ddd format is just custom, but you can trivially convert that to any other format. And if you convert it to decimal then you can simply check with the larger than and small than operators. (actually => and =<, since you probably want to include the edges).