Search Results

Search: Posts Made By: strawhatluffy
1,583
Posted By strawhatluffy
Help with sort command
i'd like someone to explain me the meaning of the code below:
sort -t: +0 -1 /etc/passwd

when i'm running this at terminal it prints me all the contents of /etc/passwd file.
maybe it sorts them...
6,155
Posted By strawhatluffy
oh thank you very much!
oh thank you very much!
6,155
Posted By strawhatluffy
How to extract fields from etc/passwd file?
Hi!
i want to extract from /etc/passwd file,the user and user info fileds, to a another file.I've tried this:
cut -d ':' -f1 ':' -f6 < file
but cut can be used to extract olny one field and not...
2,133
Posted By strawhatluffy
thank you very much,both of you!
thank you very much,both of you!
2,133
Posted By strawhatluffy
thank you very much!!! ah!i think i've seen...
thank you very much!!!
ah!i think i've seen this command again but instead of '2s' was "1.5s"
is this possible?
2,133
Posted By strawhatluffy
ok..i got it...'3d' in sed means delete the third...
ok..i got it...'3d' in sed means delete the third line....and i thank you for this..
if i had sed in this form what this could mean:
sed '2s/home/george/' filename
whats the meaning of the '2s'??
2,133
Posted By strawhatluffy
maybe the command sed '3d' filename if i...
maybe the command
sed '3d' filename
if i write it somewhere in my script replaces the sting '3d' withe the contents of the filename?
2,133
Posted By strawhatluffy
ok i got this about the tr command... but what...
ok i got this about the tr command...
but what about the first command with sed and the second with sort?can you explain me these please?
985
Posted By strawhatluffy
thank you very much!!
thank you very much!!
985
Posted By strawhatluffy
command output
i wrote this shell command:
grep '^root' /etc/passwd
when 'root' is in the begining of line.
the output is :
root:x:0:0:root:/root:/bin/bash

can someone explain to me what's the meaning of...
2,133
Posted By strawhatluffy
help with some commands
Hi!
i'd like from someone to explain me 'what is what' from these parts of code if it's possible.i'd like to understand them and their usage:
1)
sed '3d' filename

2)
sort –t: +0 -1 /etc/passwd...
5,035
Posted By strawhatluffy
no corona!i'm trying to explain to methyl what...
no corona!i'm trying to explain to methyl what outputs cames from my code!i haven't tryied it yet!i'll try it though!thanks for the reply!
5,035
Posted By strawhatluffy
it outputs nothing at all...but without grep i...
it outputs nothing at all...but without grep i can see the pid and the %cpu collumns..i cant understand why is this happening...
5,035
Posted By strawhatluffy
ps command problem
im using this code below
clear

ps -e -o pcpu,pid | grep \^"0.00" but this outputs nothing at all!only if i delete grep command its running properly, ps -e -f pcpu,pid !!! :@@@
why is this...
1,080
Posted By strawhatluffy
[Solved] Problem listing processes
hi!
i wrote this script(ubuntu os):
clear

echo "number of running processes"

ps -ef | wc -lbut i can't get the number of my currently running processes...
is there a way to see HOW MANY...
7,717
Posted By strawhatluffy
thanks methyl!i just wanted to see if that was...
thanks methyl!i just wanted to see if that was possible with these simple commands!thanks again!
7,717
Posted By strawhatluffy
yeah i'm sorry!i mean the list of...
yeah i'm sorry!i mean the list of users...sorry!what about ls command or cat to get the list of users?is it possible?
7,717
Posted By strawhatluffy
thanks a lot for your reply!maybe i didn't wrote...
thanks a lot for your reply!maybe i didn't wrote what i want properly sorry for my bad english...my main problem is how i can use one of the commands(ls,cat,grep(or egrep)) to get the users in...
7,717
Posted By strawhatluffy
etc/passwd help
Hi!
i've been searching a way to display the users who are in the /etc/passwd directory...using ls or grep or cat command should do it?i can't find a way to get this right..i mean none of the...
1,594
Posted By strawhatluffy
ok!thanks a lot for that!
ok!thanks a lot for that!
1,594
Posted By strawhatluffy
isn't ps command enough for outputing my...
isn't ps command enough for outputing my processes?
the command(assuming my login is straw like you said) ps -fustraw is more appropriate?or i will get the same ouput?
2,793
Posted By strawhatluffy
ok i get it!with this the output will be a list...
ok i get it!with this the output will be a list with processes with zero %cpu the name of the user and the pid of the process...and with grep (and the \^ before grep) we can get the columns with...
2,793
Posted By strawhatluffy
i have solaris on my pc and the latest version of...
i have solaris on my pc and the latest version of ubuntu at the other pc(the one i'm using right now)...like i said i'm trying to write a shell script or better i want to learn how i can write a...
1,594
Posted By strawhatluffy
thanks a lot!!
thanks a lot!!
1,594
Posted By strawhatluffy
thanks a lot guys! but how i can get the list...
thanks a lot guys!
but how i can get the list of groups?
Showing results 1 to 25 of 34

 

Featured Tech Videos

All times are GMT -4. The time now is 03:59 AM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy