General :: How To Use Grep To Display All Users Running Particular Command?

Mar 19, 2010

Can someone please tell me how I can use grep to display all users running a particular command.

View 3 Replies


ADVERTISEMENT

General :: Unable To Neither Add New Users Using Command Useradd Nor Delete Existing Users Using Command Userdel

Jun 30, 2010

Im not getting able to neither add new users using command useradd nor delete existing users using command userdel. And even Im not getting able to login into any existing users except root. It was ok before. Im having this problem very recently on my linux server. Im using RHEL5.

View 9 Replies View Related

Ubuntu :: Xscreensaver-command: No Screensaver Is Running On Display :0.0

Aug 21, 2010

have you ever tried to type into xterm ? (output of 5-11.1): Code: xscreensaver-command -lock xscreensaver-command: no screensaver is running on display :0.0 If it is working for you, which version of xscreensaver do you have?

View 1 Replies View Related

General :: Break Down A Grep Command?

Apr 8, 2011

What does this command mean? grep 'GET / HTTP.*Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1' last10m |cut -d ' ' -f1 |sort -n |uniq -c|sort -n|tail

Whats the best way to figure out these commands in general? I have a lot of learning to do!

View 9 Replies View Related

General :: Grep Exits Abnormally With Code 123 When Running Rgrep On Emacs

Oct 7, 2010

I'm running GNU Emacs 23.1.1 on "Ubuntu 10.04.1 LTS" and any search I perform using the built-in M-x rgrep on the standard Linux kernel source code (vanilla) ends prematurely with the following error printed to the emacs echo area:Grep exited abnormally with code 123.I have been seeing it for a while on Redhat systems as well, and with other (large) code bases.

View 2 Replies View Related

General :: Exec Command With Grep Output?

Feb 15, 2011

I have a requirement to find the files having its name as ack_reply. However, there are many other files in the same directory as these resides. Now I have to remove these files from the folder and retain others after 7 days. So I tried to write the below script with grep command.

find $directory -type f -mtime +7 | grep ack_reply

how can I pass this output to -exec command.

If I am not using grep command my script would be as

find $directory -type f -mtime +7 -exec remove.sh {}\;;

How can I use -exec with grep and find.

View 4 Replies View Related

General :: Specify More Than One String To Ignore (grep Command)?

Jul 28, 2010

I am using grep to filter out directories I am not interested in like this:svn stat | grep -v data/charts | grep -v lib/model | grep -v web/picsIt seems a bit "hacky". Is there a better way to specify more than one string to ignore, so that I dont have to chain multiple grep commands?

View 3 Replies View Related

General :: Command To Grep Complete Line

May 11, 2011

cat filename| awk '{print $3}' | cut -c -3 | cut -c 2- | grep 66

this returns the lines containing "66" at 2nd 2 characters of 3rd column of a line, now i need complete lines for this, how can i do it?

View 6 Replies View Related

General :: Difference Between Grep And Find Command?

Dec 24, 2010

For searching a file or directory i normally use grep command. kindly can you guide me the difference between grep and find command. I have used both but that are the difference between them ? are the same or grep is new as comapird to find command.

View 2 Replies View Related

General :: Can't Quit Terminal Command - Grep Some_word?

Sep 5, 2010

After typing "grep some_word" on terminal 6, the system doesn't do a thing, just lets me type endlessly. I've tried "Esc", "q" , [CTRL] + x, "exit" and no luck. I bet I'll kick my ass when you tell me but at the moment I can't figure it out. Rebooting would probably solve the problem but there must be a better way.

View 5 Replies View Related

General :: Grep Command - Show The Files But Not The Line Count

Oct 31, 2010

This has to also show the line count. I can get it to show the files but not the line count. What is the single command used to identify only the matching count of all lines within files under the /etc directory that contain the word „HOST? List only the files with matches and suppress any error messages.

View 4 Replies View Related

General :: Find / Grep Command Without Searching Mounted Shares?

Jan 5, 2011

When I used the find command, I almost always need to search the local drives. But, I almost always have super large network shares mounted and these are included in the search. Is there an easy way to exclude those in the find command, grep and other similar commands? Example:

find / -name .vimrc

View 1 Replies View Related

General :: Use Grep Command To Filter The Log Files Created Between 3:00 PM To 4:30 PM In Buch?

Dec 13, 2010

I would like to know how to use grep command to filter the log files created between 3:00 PM to 4:30 PM in buch of log for whole day in different headings. This files resembles like sar file in linux.

View 5 Replies View Related

General :: How To Display Users Log On Time?

Feb 28, 2010

I was wondering how could I display a list of all of my users and their log on time, you know like small reports on what user was connected for how long.

View 5 Replies View Related

General :: Disable The Su Command On A Server So That Users Cant Run The Su Command?

Apr 29, 2010

i want to disable the su command on a server so that users cant run the su command i removed the comment from the 3 and 5 line in /etc/pam.d/su file but it doesnt seem to work the file is shown below

#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.

[code]....

View 8 Replies View Related

General :: System Script To Display All Users?

Jul 15, 2010

Can anybody help with with shell scripting.I need a script to display all users in system.i know there are commands to display all users but i need a script for that.hope someone can share the script.

View 4 Replies View Related

General :: IceWM - Customizing Display Settings For Different Users

Jan 15, 2010

I have a Debian machine running IceWM. I want to set it up so when userA signs in they get a screen resolution of 1280x1024 and normal size icons and normal size cursors. Then I want it setup so if UserB signs in they get a screen resolution of 800x600 larger icons and larger mouse cursor icons. How can I customize the display settings per user with IceWM? I did not see where I can set these options in ~/.icewm/preferences.

View 2 Replies View Related

General :: Running A GUI Program On The Display Of A Remote PC Via Ssh?

Jan 20, 2011

I am connecting to remote Linux PCs via ssh, to update software and do other tasks. I want to send a notification to the remote PCs screen (eg, "Do not run program X, it is being updated now"), so the users do know what is happening.

Is there a reverse way for ssh -X host so I can connect to a remote Linux machine and run notify-send and it appears on the other display?

View 2 Replies View Related

General :: Display GUI Apps Running On One Box On Another Machine?

Sep 8, 2011

I'd like to display GUI apps running on one Linux box on another machine.

I already do this with local machines, but how to do this over the internet?

Update: I'm already using ssh to access the machine over the internet.

View 3 Replies View Related

General :: Getting The Command To Find Out Users?

May 17, 2010

I want to know the command which will list the local users created by me not system users.

View 6 Replies View Related

General :: Add More Users And Password In One Command?

Sep 23, 2010

I am new in Linux.Problem is that how to add a more then one users in a one command and also add a password to them?

View 2 Replies View Related

General :: No Command Completion For New Users?

Jul 18, 2011

I am using ubuntu 9.04. I created new users, & users logged in with their name & password. Everything is working fine. But when they open gui terminal or when they login using CLI(using ctrl+alt+f1), they will get only "$" symbol, instead of full path like pwd, hostname, etc. And if I do ls, it is listing the content, but command completion is not happening, i.e $cd Des(pressing tab). These all things can be fixed only after pressing "bash". So I don't always want to press "bash". So is there any way that I can fix this issue.

View 6 Replies View Related

Programming :: How To Grep Process Running More Than 30 Days Only?

Aug 18, 2009

is there a way for me to grep the process that running more than 30 days only using linux command or script?

example:i do ps -ef to list out the process, then i want to filter only the process that always running more than 30 days..

View 8 Replies View Related

General :: Find/grep/wc Command To Find Matching Files - Print Filename And Word Count?

Sep 11, 2009

I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:

wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;

View 10 Replies View Related

General :: How To Find File With Name="php.ini" Using Grep Command

Jun 14, 2011

How to find file with name="php.ini" on linux using grep command?

View 2 Replies View Related

General :: Commands To Display Running Processor Number Id?

Jan 24, 2011

I have 8 cores system, but I only want to use 4 cores of it. Are there any commands to show which cores are running tasks?

View 1 Replies View Related

General :: Retrieving Previous Command For All Users?

Mar 17, 2011

Allow me to submit that i did a mistake of not saving the work which i done in the past few months. i have used history command to see the previous commands. But trouble is that since i had worked a lot on gnome-terminal, only last 1000 commands are shown. Is it possible to see list of all the previous commands for all users. Also, sorry if this sounds absurd, but is it possible to save the details of a session onto a single file ? I not sure but when i had worked on vector Linux, i had used some command to save sessions at the terminal. Is there any analogous command in Ubuntu 10.04 also ?

View 2 Replies View Related

General :: Display X Apps Running On Host1 And Displaying On Host2 ?

Feb 20, 2010

I have three boxes with lenny debian recently installed. I'd like to be able to display X apps running on host1 and displaying on host2. "xhost +" would do the trick for me if I could get it to work but as far as I can tell it does nothing. (BTW, I'm aware of the security risks. This is not a concern for me. I'm safely behind a good firewall. I'm also aware of "ssh -X" but that won't quite solve my problem. See the long version below.) I suspect that Debian secures the xhost command out of the box in some way but I can't seem to figure out what it is. If that is true and someone can show me how to reset it, or direct me to appropriate documentation I think that would solve my problem.

Here's the long version:

What I really want to do is play xbattle with my kids but I need to be able to display the board to three different screens. In xbattle the command line is: % xbattle -red me -blue host1:0 -green host2:0 {and more stuff of no consequence to my question}

This opens a game board for player red locally, player blue on host1 and player green on host2. Or at least it should. If there is a way to make this work with "ssh -X" (or anything else for that matter) I'll be happy to use that instead, but so far as I can tell "ssh -X" only lets me redirect the display back to the one I ssh'd from whereas I need to direct to multiple displays to run xbattle.

View 2 Replies View Related

General :: Enable Crontab Command For Normal Users?

Nov 18, 2010

I have install RHEL5 and created normal user as "test". When I login as root user, I can run crontab command but when I login as test user, I can't run crontab command and throws error as "cron/test: Permission denied". how to enable crontab command for test user as well?

View 3 Replies View Related

General :: Bash Command To List Users Logged In At 5pm

Jun 7, 2010

I need to figure out a bash command to list all users logged in at or after 5pm - 5pm being the specifier in the command.

Code:

Command seems to be the easiest way to display users but it specifies all users log times.

I've also fiddled with the lastlog command to no avail.

View 2 Replies View Related







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