Reputation
634
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 7
Newest
 Yearling
Impact
~112k people reached

  • 0 posts edited
  • 0 helpful flags
  • 107 votes cast
Mar
30
comment Difference between locate and which in Linux
in bash, prefer : type -all acommand . And If I read the XYProblem behind your question : you have a command, you can see it via locate, but can't execute it ? then edit PATH, either in your specific user's ~/.profile file, or if you are convinced you know what to do, in the global /etc/profile file [WARNING: you may break system scripts (and possibly a lot of the OS) if you add the wrong path in the $PATH of /etc/profile... (ex: paths containing commands usually found elswhere). Prefer only adding at the END of the variable. And please do not put :: or a . anywhere in that PATH.
Mar
18
comment After-the-fact remote nohup with tcsh
You can maybe re-attach via reptyr. See : serverfault.com/questions/466129/restore-ssh-session/…
Mar
2
comment compressing a tar.gz into something smaller
videos should be much, much smaller, unless it is for LAN use only
Jan
21
comment Show password characters when logging in to Linux
see this answer : unix.stackexchange.com/a/141272/27616
Nov
21
awarded  Yearling
Nov
16
comment A more comfortable way to edit a long $PATH?
suggesting an alternative: d="/usr/share/man" ; [ -d "$d" ] && MANPATH="$MANPATH:${d}" It will be shorter, and easier to add a new dir (just copy a line and edit the first "d=...." part). However, for the PATH one, I think you'll end up with far too many dirs in your PATH, which is not always good (what if some "foo" command exist in one of the less known paths, and do something entirely different that what a regular user would expect?)
Nov
5
comment Difference between '{}' and {} in find command?
they are not erring, they are trying to make sure people use the correct way (ie use '{}' instead of {} ) so that their shell send {} to the find command without interpreting it (as mentionned above by @Charles-Duffy, if you happen to use fish, it will interpret {} but not '{}', so you need to use the latter on that shell (and on several others!). Therefore, always use '{}' to avoid being bitten by the ambiguity of {}
Nov
5
comment Difference between '{}' and {} in find command?
I'd replace " are interchangeable" with " are interchangeable in some shells, not in all of them. ALWAYS use the single quotes to make sure they get passed as-is to the find command" (good habits starts by making sure you use the correct way even if you happen to (always?) be on a system that allows the ambiguous one)
Sep
22
comment Why are not all files compressed and how to improve the solution
@ismaelmiguel: I m pretty sure it will happily create the file. if not, just : touch xy_0_10000.tar.gz && { _the full command here_ ; }
Sep
22
comment Why are not all files compressed and how to improve the solution
could a (=add) instead of c (=create/overwrite) work around that limitation?
Sep
22
comment Why are not all files compressed and how to improve the solution
and if you try a instead of c, in the tar command?
May
18
comment Cannot Create User Account Named 'Con' Under Windows 7
for example: any program that may create a folder or file (for settings, for example) named with your username will break. I don't know of any program like this (usually they instead store it underneath your home dir), but they could exist.
Mar
16
comment Can’t kill a process that’s running—yet apparently not visible—in the task manager
+1 for a good answer (but... invented the [x] trick 20 years ago? or just read about it in the Unix FAQ ? ;) )
Mar
16
comment Can a file be maliciously changed in a way that maintains its original SHA-1 Hash?
-1 Not right at all. aka "Not even wrong" (Wolfgang Pauli)
Mar
16
comment Can a file be maliciously changed in a way that maintains its original SHA-1 Hash?
According to the wiki for sha-1 (en.wikipedia.org/wiki/SHA-1): As of 2012, the most efficient attack against SHA-1 is considered to be the one by Marc Stevens[34] with an estimated cost of $2.77M to break a single hash value by renting CPU power from cloud servers.[35] ( ... ). On 8 November 2010, he claimed he had a fully working near-collision attack against full SHA-1 working with an estimated complexity equivalent to 2^57.5 SHA-1 compressions. He estimates this attack can be extended to a full collision with a complexity around 2^61. . So not exactly "never done", but quite costly
Mar
9
comment Remove key from known_hosts
-1 because of the whole "delete the whole known_hosts file" first lines. This is a terrible, terrible, terrible thing to propose, and should be edited out.
Nov
21
awarded  Yearling
Jul
22
revised How to make the spellchecker accept two languages at the same time in Word 2007?
added 5 characters in body; added 380 characters in body
Jul
22
answered How to make the spellchecker accept two languages at the same time in Word 2007?
Jun
17
comment Is it possible to ping an address:port?
+1. Many, many people think that if they can't ping something they can't connect to it... but as you say, ICMP is different than TCP and UDP : if you intend to serve, say, a webpage on TCP 80, than you only need to open TCP 80 on the firewall, nothing else (so Ping to the same IP could (... should!) be blocked, for example)