346 reputation
18
bio website
location United States
age 43
visits member for 3 years, 6 months
seen Oct 29 at 2:56

Working amidst the ever merging & forever blurred realms of technocrat and troglodyte.


Jun
11
comment Can I “export” functions in bash?
summarizing answers below (enzotib is correct, assuming you can use bash, as the question indicates): change #!/bin/sh to #!/bin/bash and after doit() {...} just export -f doit
Mar
14
comment How can I check if two gzipped files are equal?
true, md5sum isn't necessary to compare (unless you already have them generated); I just used it since derobert used it. zgrep is just a script that basically does gunzip and grep (or sed as the case may be), so there is little difference there. the script as posted is intentionally shown as a chain of pipes with pluggable parts; what's the fun in merging everything down into a single command?
Mar
14
answered How can I check if two gzipped files are equal?
Mar
3
comment How to detect particular system call called or not in a whole workflow?
How about dtrace? (what OS?)
Jan
30
comment What are ./ and ../ directories?
@Adam yes, that will probably do the trick ("ls -b | wc -l"); you can also use the "-1" (dash + number one) which forces a listing in a single column instead of all on a single line, but that happens anyway when piping to another command. So (imho) I'd leave it as "ls -1b | wc -l" ; and to "test", run "ls -1b" and count the number of lines, then run "ls -1b | wc -l" and verify the results. (That's how to debug/test pipes.)
Nov
29
comment Differences between VNC and ssh -X
@simona after the successful ssh login, then run screen: ssh user@host ; and after logged in: screen bash ; to disconnect, ctrl+a followed by ctrl+d. You can logout and login again, then: screen -ls and screen -r. Exiting bash exits the screen session. For more (much more), see various tutorials on GNU screen
Nov
16
comment Differences between VNC and ssh -X
Although a bit OT (since this Q is presumably only about GUI apps): if an actual GUI app is not required, and just basic shell access will do (e.g., xterm), then do "ssh" followed by "screen bash". If disconnected (laptop closed,vpn disconnected, etc), the remote shell stays active. Re-login & re-connect via "screen -r". I only bring this up since I've seen people run vnc just for basic shell access (or run a remote xterm displayed locally); most of the time (but of course not always), simple shell access will suffice.
Nov
12
comment Where is the core of Unix?
i remember year-long debates on terminology and "unix-ness" (back in comp.unix.*)... agreeing to disagree is a good idea. But, Rob is correct :-)) The distaste for the verbosity of "unix-like" led to the moniker "Un*x"; plus, "Unix" is a registered trademark, and most of us scruffy-beard types don't care for terms or software that restricts use. So please forgive us (old dogs) our persnickety tendencies. And to all noobs: know what is unix vs linux, just to save yourself the flames in all the forums out there less hospitable than this one.
Nov
10
revised Where is the core of Unix?
added 42 characters in body
Nov
10
comment Where is the core of Unix?
The question seems to be about building an OS from scratch; LFS is about building a (new) Linux distribution from scratch. For example if @Justin wanted a "JustIX" distro of Linux to complete with Mint, rather than actually developing a kernel separate from Unix/Linux, while at the same time building on the knowledgebase and legacy of Un*x.
Nov
10
answered Where is the core of Unix?
Jul
5
revised Is there a good combination of command-line and graphical file browser?
deleted 98 characters in body
Jul
2
revised Is there a good combination of command-line and graphical file browser?
added 1 characters in body
Jul
2
revised Is there a good combination of command-line and graphical file browser?
added 276 characters in body
Jul
2
answered Is there a good combination of command-line and graphical file browser?
May
27
awarded  Yearling
Jan
23
awarded  Revival
Jan
23
answered Giving some users only SSH and shell access with limited resource usage
Jan
20
awarded  Editor
Jan
20
revised Permissions for a submission script
added 242 characters in body