Search Results

Search: Posts Made By: strawhatluffy
10,246
Posted By Scott
cut can cut multiple fields. I.e. cut -d:...
cut can cut multiple fields. I.e.

cut -d: -f1,3,5 file

Or with awk:

awk -F: '{ print $1, $3 }' file
3,178
Posted By Corona688
That sounds something more like what you'd find...
That sounds something more like what you'd find in printf than sed. I don't think it makes sense here.
3,178
Posted By methyl
The 2 means go to line 2. While on line 2...
The 2 means go to line 2. While on line 2 [s]ubstitute the first occurance of the string "home" with "george".
Try it.

The "1.5" version is a syntax error in my "sed".
Try it.
1,307
Posted By Corona688
That's root's line in the passwd file. It...
That's root's line in the passwd file. It describes root's username, password(represented by x, the real hash is securely stored in /etc/shadow), user id, group id, comment field(just root), home...
9,783
Posted By methyl
/etc/passwd is a file not a directory. To see...
/etc/passwd is a file not a directory.
To see the properties of the file /etc/passwd :
ls -lad /etc/passwd

The easiest way to list the users is to use the unix "listusers" command. However your...
9,783
Posted By jim mcnamara
ls shows directory contents (files) not users. ...
ls shows directory contents (files) not users. Not the content of files, just information like filename, size, who owns it, and file permissions

cat displays a file, with no special formatting. ...
3,140
Posted By methyl
If you only have one session "ps" with no...
If you only have one session "ps" with no parameters is enough providing that you have not started anything in background under your login name.

If say you want to find every process running under...
3,398
Posted By methyl
If (and only if) your systems support the...
If (and only if) your systems support the Berkeley unix syntax for the "ps" command where you can choose the columns (e.g. cpu percentage).

e.g. Something like this:
ps -e -o...
3,140
Posted By dyavuzy1
you can also list all registered user with "...
you can also list all registered user with " logins" command..

#logins

to list the groups;

#cat /etc/groups
3,140
Posted By methyl
Your processes (even if you are logged in more...
Your processes (even if you are logged in more than once).
Assuming your login is "straw":
ps -fustraw
3,140
Posted By jayan_jay
In solaris .. $ cat /etc/group
In solaris ..

$ cat /etc/group
3,140
Posted By jayan_jay
To list only for that userid .. $ prstat -u...
To list only for that userid ..

$ prstat -u username 1 1


To get the list of registered users in the machine ..

$ cut -d: -f1 < /etc/passwd
3,140
Posted By rangarasan
Username
Hi,

You can get the all usename with the help of below command.


cut -d':' -f1 /etc/passwd


and you can get your process alone with the help of below command


ps

Cheers,...
1,164
Posted By Rksiva
Use the below, will list all the process with CPU...
Use the below, will list all the process with CPU %


prstat 1 1
1,164
Posted By venkatareddy
You can use top command it will list you the %CPU...
You can use top command it will list you the %CPU Consumption by each process

code could be like this

bash-3.2$ top |awk '{print $2 , $3 , $9=0}'
Output

PID USER 0
8971 raj 0
3042...
4,495
Posted By methyl
First let's get the "find" right: We're looking...
First let's get the "find" right: We're looking for any executable file so we need to check User, Group and Other permissions for the Executable bit. Within the protected brackets of this command...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 10:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy