Reputation
733
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
6 12
Newest
 Enlightened
Impact
~11k people reached

Jan
19
comment Could I remove apt with apt?
@Tim I guess "scary" is relative. In fact ubuntu-desktop is a placeholder to make sure all of the default GUI stuff gets installed, it'll uninstall itself if you remove almost literally anything from a default system - and it doesn't do anything at all itself.
Jan
18
comment Could I remove apt with apt?
None of the packages it removes are particularly "scary" IMO except for, of course, apt itself.
Jan
18
comment Could I remove apt with apt?
@immibis I'd be more concerned about that for removing dpkg. Apt itself just tells dpkg what to do, dpkg is what actually performs the (un)installations.
Oct
6
comment What does “:” (colon) operator in a bash variable expansion: VAR=${TEMP:3}?
It's not necessarily relevant from an Ubuntu perspective, but this is a ksh93 feature and not in ksh88 (which is, I assume, why it's not in POSIX).
Sep
21
comment Kinder / gentler / subtler equivalent alternative to killall (e.g. “endall”)?
This is one of the reasons I prefer pkill. The other reason is that it pairs with pgrep, which makes it easier to check exactly what processes will be killed, and which itself has better matching semantics than ps | grep.
Aug
20
comment How to put a box around something in GIMP?
I'd border the selection and just fill it in a new layer.
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?