Reputation
723
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 11
Newest
 Organizer
Impact
~10k people reached

May
22
comment What is the Ubuntu equivalent of OSX `chmod -h` flag?
Incidentally POSIX does specify the fchmodat function, which can be used to change the mode of symbolic links (optional feature - systems that do not support it, including Linux, return error EOPNOTSUPP), but nothing in the chmod command to use this. Only -R is defined in POSIX.
May
22
comment What is the Ubuntu equivalent of OSX `chmod -h` flag?
are you sure ssh cares about the permissions on the symbolic link and not the permissions on /somewhere/else/privatekey?
May
22
comment What is the Ubuntu equivalent of OSX `chmod -h` flag?
The ability to set permissions on symlinks is not specified in even the latest version, it's a BSD extension.
May
16
comment How to delete all files except one named file from a specific folder
What shell does this work on? Does it work on ubuntu's default bash? EDIT: nevermind, found the info, proposed an edit.
May
9
comment Why does bash thinks that 010 is 8?
@Tim if so I couldn't figure out how. ${${N%?}:-0} works in zsh but not in bash or ksh. (Also, :- in my comment above should have been :-0}
May
9
comment Why does bash thinks that 010 is 8?
@Tim to do that you can use ${N%?} to chop the last digit and then ${N:-} to replace blank with 0.
Apr
24
comment Where are commands `fg`, `bg` and `jobs` installed?
@user136104 The reason why something like echo or kill can exist as both commands and builtins and most of the other builtins aren't is because they cannot function without being part of the shell. What exactly would an external bg do? It doesn't know what process to continue, and it can't control its interaction with the terminal.
Apr
24
comment How to use grep output as a path for cd?
No, it's not guaranteed, in theory a shell could use a named fifo or temp file, though there's no reason to.
Apr
24
comment How to use grep output as a path for cd?
Of course, if you want to get technical, the shell uses a pipe internally to read the command output.
Mar
18
comment bash: /home/…/program: cannot execute binary file
@BartoszOlszewski "AMD-64" refers to the architecture used on modern 64-bit processors made by both Intel and AMD, because it was used by AMD first (Intel had a rival 64-bit architecture called Itanium).
Feb
26
comment In which directories can “nobody” user write?
@muru IIRC this means anyone can create files in the directory, and can open files that they know exist, but cannot list the contents.
Feb
26
comment In which directories can “nobody” user write?
shouldn't this be -perm -002? That way you aren't checking everyone to have every permission, just world-write permission
Feb
20
comment Will creating a text file in vi change my computer?
@heemayl why not just make the first line in the file exit?
Nov
19
comment Any command line calculator for Ubuntu?
Wait, what exactly do you mean "switch to" python? and "without any extra prefixes"? Are you saying you want to be able to calculate things at the prompt without running a command?
Nov
18
comment Any command line calculator for Ubuntu?
bc isn't included anymore?
Dec
17
comment Why can't I import “pygtk” with Python 3.2 from PyDev?
I misread someting about PyGObject - it's confusing that there are announcements about that on the PyGTK website: > PyGobject 2.26.0 has been released. This is the first stable release in the 2.26.x series and introduces initial support for introspection and Python 3. As usual, sources can be fetched from here. Check out the release announcement and full list of changes.
Nov
23
comment Why can't I import “pygtk” with Python 3.2 from PyDev?
"a version of PyGTK for Python 3 was never written." - that's not what the pygtk website says - do you mean was never packaged for ubuntu?
Oct
29
comment Is it really possible to run Linux applications within Windows using Wubi?
You could also use current versions xubuntu or lubuntu, which haven't caught the unity bug yet.
Sep
13
comment Why does this 'kill' command log me out of the computer?
@user606723 the init process will not exit, and can decide what (if anything) to do about all the other processes having exited.
Mar
13
comment Setting directory file permissions in Ubuntu using chmod
Er, it looks like he's trying to add an ACL entry, not change the basic permissions.