Programming :: Script For Finding Powerful Users?

May 19, 2010

I wanted to find powerfull users in Linux system and while searching in internet i found the below script.

grep -v -E "^#" /etc/passwd | awk -F: '$3 == 0 { print $1}'

what does "^#" means..?

cat /etc/passwd | awk -F: '$3 == 0 { print $1}' aslo gives me same result.

View 5 Replies


ADVERTISEMENT

General :: Do Users Need Very Powerful PC?

Jan 24, 2011

purely want to use linux for doing documents, writing software, internet, do you need very powerful PC? we can see intel/AMD are coming out with very powerful CPU/APU or whatever high end - 4-8 core processors,it is nice to own a system running with latest technology CPU,anyway, will it be a waste if you only run Linux on such system?because linux always only need minimum hardware requirements.

View 14 Replies View Related

Ubuntu :: Finding Out Whether Other Users Are Logged In ?

Feb 16, 2010

Whenever I want to shut down, I have to enter my password, because shutting down while other users are logged in is a privileged operation. Now, I couldn't download an update because the update lock was in use. I'd be surprised if someone had targeted my system, especially because I didn't install any obscure .debs or anything recently, but I'd really like to find out if it's been compromised somehow. Say, by obtaining an overview of all users currently logged into my system or something. Is that possible?

View 2 Replies View Related

Ubuntu :: Finding Any Stoner Edition (respin) Users?

May 7, 2011

In spite of the name or,perhaps, because of it.There were many talented folks contributing to it.

View 2 Replies View Related

General :: Most Powerful Live CD?

Feb 12, 2010

I have tried puppy, knoppix, and nimblex all trying to copy the contents of a crashed drive to an external. They all have problems writing to the external even though it is listed as "(rw)" I guess because a liveCD doesn't want to touch the installed system (?)

What is the most powerful linux liveCD which allows one to write from anything to anything else with all safety turned off?

View 14 Replies View Related

General :: Choosing A Fast And Powerful Distro?

Feb 4, 2011

I've been using linux for a while (various distros) but somehow they dissapointed me. I know what I'm looking for, a lightweight, fast, minimalist but customizable enough, with no specific graphical environment, bleeding edge distro for a new laptop (used for studying and surfing internet), that hopefully works with my hardware.

I want to have the possibility to compile from source to make my own changes but also to install from binaries easily. I'm not a linux expert, not even an advanced user but I'm willing to learn anything to get my distro running so I'm not looking for a full out of the box distro. It would be great if this distro also had a good community.

View 4 Replies View Related

Slackware :: Powerful Indexed Search Tool

Jun 9, 2011

I am familiar with slackware's slocate.What slocate doesn't have is an option to limit returned results from specific users or groups.What's more I can't seem to find a gui/web frontend so that people without knowledge of cli can benefit from the slocate's indexed search.So I turn to you all, is there another tool, that supports per user/group searching and a web (preferably) frontend?(clarification) i think slocate returns results related to the user running the search (files that he owns as well as files that are owned by his primary and other groups). Is that correct? I basically want a search user (who will be a member of the several groups that our office is structured like) to get results by giving as search criteria not only the filename, but also the owner of the file and / or the group

View 5 Replies View Related

Ubuntu :: FileZilla Beta Repositories And A Powerful Screengrabber?

Jul 2, 2011

I am with Ubuntu 11.04 32Bit edition and I use (and love!) FileZilla. I just run the update procedure and it says there's out the new v3.5.0 but if I try to get it via Software Update it doesn't show results. How do I do to add it via Package Manager? There are some Official Beta/Nightly repositories can I add?

Another question... I'm looking for a powerful screengrabber, SnagIT like, there are any advanced tool on Linux? I tried running SnagIT via WINE but it doesn't work.

View 3 Replies View Related

Fedora Hardware :: Powerful (500mw+) Wifi USB Adapter For Netbook?

Apr 25, 2011

I am looking for a powerful (500mw+) wifi USB adapter for my netbook, and after spending quite a bit of time on Amazon, Newegg and Google I couldn't find anything that would work properly on Fedora without compiling the drivers and stuff. Some are reported to work on Debian distros, but couldn't find any reliable reports of them working on Fedora.

View 2 Replies View Related

Ubuntu :: Powerful Torrent Client With Good Download Speed

Apr 6, 2011

I have been using u torrent in windows and I am not able to find a similar torrent client in ubuntu 10.10, I was using transmission bittorrent client, but it is not able to look for peers and seeds as utorrent does and even the download speed is very slow when compared to utorrent. Which is the best torrent client as powerful as utorrent?

View 9 Replies View Related

Programming :: Finding Available Space In A Volume?

Nov 15, 2010

Given the name of a mounted volume (e.g., /mnt/vol), how would I determine its capacity and available space in C? I've been googling for a while now and nothing jumps out as the solution. I can use getmntent() to get the name of the actual partition that is associated with the mount point, e.g. /dev/sda2, but I can't figure out how to find the capacity of the volume nor how much space is remaining, such as what the df command shows. Is there an ioctl defined to get this information or some other system call?

View 1 Replies View Related

Programming :: Finding A Driver For ADE7758 ADC

Sep 29, 2010

I am interfacing ADE7758 to At91sam9261 spi interface. Linux 2.6.28 is running on my custom board. have driver for this 12-bit ADC (ADE7758) on linux ?

View 11 Replies View Related

Programming :: Finding Only String (Already There) In File

May 10, 2010

I have a file in which I have string called "already there" in some line of it. I want that if the string is present enter some loop..

like
if(( grep "already there" $file is true ))
then
--
--
fi

But the thing is when I make grep it gives the whole line in which this string is present and gives some error: if[ grep "already there" file ]: command not found. I am very new to shell scripting.

View 2 Replies View Related

Programming :: Finding The Day Of The Week In Different Timezones

Nov 10, 2010

I am using the following to find the Day of the Week on my server which is in UTC.

Code:

But say if I want to find the Day of the Week in another timezone, how would one go about it. I had a look at date --help but could not find any timezone related switches so am not sure if this is possible using this method.

Update:
This appears to work but is this the only way?

Code:

View 2 Replies View Related

Programming :: Mod_perl Not Finding Lperl?

Sep 10, 2010

I am trying to compile and install mod_perl with apache so I can use apache:asp.
I run Makefile.PL with this command.

Code:
perl Makefile.PL APACHE_SRC=../apache_2.2.9/src
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
APACI_ARGS='--prefix=/usr/local/httpd_perl'
then I run make.

I get this error.

[error]
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory `/usr/src/mod_perl/src/modules/perl'
make: *** [modperl_lib] Error 2
[/error]

It does not seem to be finding perl but I do nt know why or what to do about it?
could this be the problem? APACI_ARGS='--prefix=/usr/local/httpd_perl' I do not have the slightest ideal what that means or if I need it.

View 2 Replies View Related

Programming :: Finding Common Entries In Fields Using Awk?

May 31, 2010

I want to extract all the common entries in the given 3 columns(fields) in the file using awk::can somebody tell me how it can be done in awk...the file is::

NC_000858.pttNC_000858.fnaNC_001403.rnt
NC_001362.pttNC_001436.fnaNC_001407.rnt
NC_001364.pttNC_001503.fnaNC_001488.rnt

[code]....

View 8 Replies View Related

Programming :: C - Finding About Function Naming Convention

Feb 13, 2010

What's most commonly used and what do you prefer? C-Style (this_is_my_function), Camelcase 1 (thisIsMyFunction), Camelcase 2 (ThisIsMyFunction

View 10 Replies View Related

Programming :: Finding Location Of Duplicate Directories

Jan 8, 2011

This simple task is proving harder then imagined. I have a multi-level directory that I'm trying to clean of duplicates, but I can't get 'find' to print what I need to see. To give an illustrative example, here is a dir:

Code:
stuart@stuart:~/testdir$ ls *
dir1:
level2:
dir1

So the output of find as i'd like it to work would show the two locations of dir1, which would be ./dir1 and ./level2/dir1. But no:

Code:
stuart@stuart:~/testdir$ ls -d */ | head -1 | find . "`cat`" -type d
.
./level2
./level2/dir1
./dir1
dir1/

View 2 Replies View Related

Programming :: Finding IP Address: Nslookup Or Ifconfig

Oct 14, 2010

I am trying to find IP address. In a socket programming tutorial, I found :

Code:
$ nslookup localhost
command. It gives me a address. However, one colleague told me :

Code:
$ ifconfig

It also returns me inet_addr. But both are different. Kindly tell me the correct method to find IP address? I have also checked the /etc/hosts file but it says "localhost"

View 2 Replies View Related

Programming :: Finding Mac Address For Default Route?

May 11, 2009

I would like, from a C program, find the hardware MAC address of the default route path. With BASH I can do a 'route' find 'default and then an ifconfig and grep for 'HWaddr'. Are there C calls to do the same??

View 12 Replies View Related

Programming :: Finding Particular Ranges Of Results In MySQL?

Jan 20, 2009

How do I find for example the 4th to the 9th result in a particular SELECT query?

View 6 Replies View Related

Programming :: Finding A Number In Windows Like The Inode

Aug 19, 2010

anyone know that the ntfs's file sytem struct? is there's a API or something other could let me get this number? Or there is actually no such number in windows like the number of inode in linux?

View 1 Replies View Related

Programming :: Finding A Script To Detect The OS And Run A Command?

Apr 4, 2011

I need a good way to detect if a box is solaris or linux and then be able to run out a os-centric command given the output...

View 7 Replies View Related

Programming :: Finding Path Of Sourcefiles In Makefile?

Mar 13, 2009

im trying to write a makefile which contains :two cpp files and two header files. now i've put cppfiles in a folder called source whose path is: /root/workspace/source and header files in a folder called header whose path is:

/root/workspace/makedemo/header

my makefile is in the path:/root/workspace/makedemo my makefile was like this:

Code:

HEADERS = $(shell /root/workspace/makedemo/header ls *.h)
SOURCES = $(shell /root/workspace/source ls *.cpp)
COMPILERFLAGS = -W -Wall
DEBUGFLAGS = -g

[code].....

im sure that i've given the correct path but it is showing errors like this:

[root@localhost makedemo]# make
/bin/sh: /root/workspace/source: is a directory
/bin/sh: /root/workspace/source: is a directory
g++ -W -Wall -I. -o output
g++: no input files
make: *** [output] Error 1

View 4 Replies View Related

Programming :: Script For Finding The First X-GB Of Files In A Directory?

Jun 23, 2010

I once had a script that when run would find the first 800GB of files in a directory (including subdirectories) and write them to a file (ie: ./800gb.sh > manifest.txt).I used this to create manifests of 800GB worth of data from large directories in order to dump to tape (LTO4).I'm sure its gotta be a pretty simple script, but I am not very skilled at writing bash scripts.

View 4 Replies View Related

Programming :: Finding A Documentation To Port A Windows Program?

Jun 23, 2010

I'm using ubuntu 9.04; I have a large project in windows that I want to "port" it in linux.
It uses IPC mechanism "Shared memory" and also "Critical Section" APIs in windows, but unfortunately I have no good reference to change these windows APIs to their equivalent in linux?

Is there a comprehensive documentation or reference for this issues? I mean a table containing the equivalent APIs or systemcalls in windows and linux! For example, what's an alternative for the "InitializeCriticalSection" API in linux? Or an alternative for "CRITICAL_SECTION" structure? Or even an alternative for "RegOpenKeyEx", although we don't have registry in linux!!

View 1 Replies View Related

Programming :: Algorithm For Finding The Shortest Path Between Geocoordinates?

Jun 27, 2011

AStar works on the basis of straight lines, AFAIK. In my case, we have geocoordinates and I can get the straight line distance between the waypoints. But I am wondering how approximate will the route calculated on this basis be? The actual distance "by road", which actually matters can be different.

Example. Assuming A and B are on the same plane, and will be equidistant from the goal point, if we consider a straight line between A and the goal point and, B and the goal point. The distance "by road" between A and the goal point may be greater or lesser than B. But because the AStar works on the basis of straight lines, it will return both the routes as the shortest. If yes, then which algo should be considered , if we want the results on the basis of actual distance in Km/m?

View 1 Replies View Related

Programming :: Finding A Code For Network Adapter Information?

Nov 13, 2009

I want to get the hardware information in linux. As in windows we can have API to get the network adapter information and all. But in linux why dont we have? i try to read network adapter info in /proc/bus/devices file.. but that file is very hard to parse.and i looked at the lspci source c ode. but unfortunately I dint undersatnd that code to get the network adapter information.

View 1 Replies View Related

Programming :: Finding Copies Of Files Based On MD5SUM?

Jul 13, 2010

I have a directory with some data files in it. I did an md5sum find, and built an index of all the files contained:

Code:
find ./* -type f -print0 | xargs --null md5sum > MD5SUM

Now, based on my new index, I want to find the copies of these files as they appear in a new directory, where they have been renamed and reorganized.

View 5 Replies View Related

Programming :: Finding A Cross Platform Library That Allow To Run Another Program?

Aug 19, 2010

Is there any equivalent of WaitFOrMultipleObjects on Linux?

I was finding a cross Platform library that allow you to run another program from your C++ application. I found POCO but it does not support functionality like WaitFOrMultipleObjects for both (linux and windows). I tried boost Process but its not official till now.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved