Sunday, August 2, 2009

In unix. use the more command,and content of your .profile and .shrefiles to the screen.?

in unix. use the more command,and content of your .profile and .shrefiles to the screen.

In unix. use the more command,and content of your .profile and .shrefiles to the screen.?
What is your question? first clear it


Linux/UNIX Q: what are users daemon, sys, and bin for?

On a Linux/UNIX system, what are users daemon, sys, and bin for? I looked in /etc/passwd and found that they can't log in (no shell), but they own some files, and no process is running as them.





Can anyone help me out?

Linux/UNIX Q: what are users daemon, sys, and bin for?
Hello,





These users are in charge of built in system functions, they arent actual "users" but they are required





Any userid under 500 on a linux system can basicly be considered a system user..





heres a general list:





backup: historical, probably safe to remove


bin: historical, and possibly used


daemon: historical, commonly used by daemons that need to own files, but can't


have their own user for some reason


games: placeholder for group games, don't remove it


irc: used for irc daemon(s), probably not necessary


list: I don't know


lp: used for printing daemon(s) and as a placeholder for group lp, don't remove


unless you don't have a printer and have no printing software installed


mail: placeholder for group mail, sometimes used by mail daemon(s), don't remove


man: placeholder for group man, don't remove unless you don't use the man


command


messagebus: I don't know


operator: historical, probably safe to remove


proxy: almost definately safe to remove unless you run any proxy server(s) that


use it


sync: I don't know


sys: I don't know


uucp: if you've never heard of it, you probably don't need it











Please note we dont reccomend you remove ANY account under userid 500 ever.





to remove a real user you added use userdel username











Hope it helps!




















Blue chip hosting staff,


bluechiphosting.com


http://www.bluechiphosting.com

flower power

LINUX/Unix file system question?

If you think about it the LINUX/Unix file system treats everything like a file. Maybe you have started to realize this as you look through the material. This is a important concept to realize when administering and troubleshooting LINUX. For example what directory might you look in if you are having trouble with a USB device you are trying to use? How about to check printer or email queues? At a high level what might you be looking for in them to jump start your troubleshooting?

LINUX/Unix file system question?
Usually you have to mount usb devices. I.E. if you want to mount a flash drive issue the command





mount /dev/sda1 /mnt/usbflash





now you can use it as that directory.





High level is not a reality in Linux sometimes you have to get down and dirty but it is not hard.





print queue depends on where your print software (like cups) is storing the log I would look in the configuration of your print software to see where it is storing logs. This goes for all programs running including email queues.





usually the configuration is in the /etc/ directory.





Email logs are usually in the /var/log directory.





RJ


Can sum 1 com in the Unix room on Pokemon diamond?

can sum 1 come in the unix room today at 11:00 am plz on pokemon diamond DS

Can sum 1 com in the Unix room on Pokemon diamond?
ok ill try and be there
Reply:The union room is for people who are close to each other like 2 metres away not for people who live far away your looking for the bottom of the pokemon centre in any pokemon centre to the wi-fi club and ill be in there im online now give me your name and code heres mine


SIMON (all capitals)


Code: 2234 6938 8727


Thnaks ill trade you and battle you do you have any pokemon from ruby and sapphire thanks!!


Help with a C program in unix.?

I'm trying to write a small program in Unix in C to get commands from the command line and then perform them. ie., filename.c dir = ls... But, I can't quite figure out how to move the command from argv[] to the system command. This is what I have so far:





#include %26lt;sys/wait.h%26gt;


#include %26lt;unistd.h%26gt;


#include %26lt;stdio.h%26gt;


#include %26lt;stdlib.h%26gt;





int main(int argc, char *argv[])


{





system = argv[1];





if (argc=2 )


{


if (status="clr")


{


system ("clear");


}





if (status="dir");


{


system ("ls");


}





if (status="environ")


{


system ("environ");


}


}


else (status="quit");


{


system (exit);


}





}

Help with a C program in unix.?
You're comparing strings, not integers.





if( strcmp( argv[1], "dir" ) == 0 ) {


system("ls");


}


Friday, July 31, 2009

Can someone help me with a Unix Command?

I am taking an online unix class and I don't have much knowledge about it. I know how to make folders and navigate them to an extent, but I need to do this:





Enter a command to see 6-letter words that begin with a "b" (uppoer or lower-case) and have an "e" as its third letter.





I have been reading and I have no idea how to do this. Please someone help.

Can someone help me with a Unix Command?
egrep '\%26lt;[Bb].e...\%26gt;' filename





the greater than and less than symbols are word anchors.
Reply:Assuming you have word list in a text file called words.txt, for example (one word per line), the following command will do that:





egrep '^[Bb].e...$' words.txt

clinton cards

How to compare 2 files in UNIX?

I want to know how to compare the 2 files using UNIX??





Is their any specific command or any tool for that.

How to compare 2 files in UNIX?
Use the diff command





Syntax: diff filename1 filename2





HTH


oracle
Reply:diff file1 file2 is the traditional option