-
as seen on Server Fault
- Search for 'Server Fault'
I have a script that does some housekeeping that works perfectly well when invoked from an interactive shell, but did nothing when invoked by cron. To troubleshoot this I started a shell with a 'blank' environment with the command:
env -i /bin/bash --noprofile --norc
Using this blank env I've dug…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
We manufacture a linux appliance for data centers, and all are running fedora installed from the same kickstart process. There are different hardware versions, some with IDE hard drives and some SCSI, so the filesystems may be at /dev/sdaN or /dev/hdaN.
We have a web interface into these appliances…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm looking for the string "foo=" (without quotes) in text files in a directory tree. It's on a common Linux machine, I have bash shell:
grep -ircl "foo=" *
In the directories are also many binary files which match "foo=". As these results are not relevant and slow down the search, I want grep…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I've downloaded and installed the GnuWin32 tools, and added the grep executables to the Emacs bin. I've also, for what its worth, added the GnuWin32 bin folder to my Path variable.
Problem is though, when I try and run with suggested grep commands, I always get:
Grep exited abnormally with…
>>> More
-
as seen on Super User
- Search for 'Super User'
Hi,
How can I use 'grep' to get lines start with '* ' in my file?
I tried grep "" myfile
I tried grep " " myfile
but returns all the lines of my file.
Thank you.
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
Is it possible to do the following using 1 polkit .pkla file?
Disable all users except those in the wheel group from using polkit.
The users in the wheel group will need to provide the root password when using polkit.
/etc/polkit-1/localauthority/50-local.d/wheel-only.pkla
[disable all users…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I have a process (dbus-daemon) which has many open connection over UNIX sockets. One of these connections is fd #36:
=$ ps uw -p 23284
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
depesz 23284 0.0 0.0 24680 1772 ? Ss 15:25 0:00 /bin/dbus-daemon --fork…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I've been using Linux for a couple of years now but I still haven't figured out what the origin or meaning of some the directory names are on Unix and Unix like systems. E.g. what does etc stand for or var? Where does the opt name come from?
And while we're on the topic anyway. Can someone give a…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi All,
I am beginner to UNIX,UNIX Shell Scripting.
Can you please guide me through any excellent sites for unix(which are easy to understand),some study materials(tutorials),video tutorials.
Please help!!
Thanks!
>>> More
-
as seen on Super User
- Search for 'Super User'
Is Mac OS X developed on a licensed Unix or is it a Unix-like clone that, unlike Linux, conforms to Unix specification well enough to be registered as a Unix OS. Not until Leopard, Mac OS X did not gain the Unix certification. But in Leopard, Terminal still print:
GNU bash, version 3.2.48(1)-release…
>>> More