ok, heres what i want i need....well want, hehe...
in a program, its a simple menu, i need to log the user running the program off...back to the login prompt. this is not a super user, just a normal account.
i know i could just set the program to be the users login shell..but i'd rather do... (1 Reply)
Hi,
I am using SunOS and HP-UX. I am trying to removed user that has not been using the system for a period of time. Is there anyway to find out how long since the last time the user logged on. I know there is command "last" that read from the file /etc/wtmp that hold some of information. ... (1 Reply)
Hi,
I have a script giving option to allow user who run the script log out the server.
I used 'exit' when user chose this option. But it didn't work the way I wanted. It only exit the program not the machine.
I used 'logout' after 'exit'. Still not working.
Anyone has some ideas?
Thanks!!! (6 Replies)
Hi everybody,
First, Is the command who show all the users connected to my system? Is it equivalent to the commands last |grep still.
Second, How I can log-off a specific user?
Note: My system is AIX 4.3 (3 Replies)
How can I identify usernames on UNIX, when these users don't access the server, they access folders on this server. Is it possible? :confused: (4 Replies)
I need know when user was loged last time?
So when my user log in his account he will see welcom message:
Hello username.
Today is: date.
Last time You loged on : date.
I tried to use comand lastlog -u username but it shows me time from few seconds ago.
I need logging one before.
... (1 Reply)
I have been trying to change my user name and machine name, however now I cannot log in and I am directed as guest. Is there a way to resolve this problem? (33 Replies)
Below is my script to log all the command input by any user to /var/log/messages. But I cant achieve the desired output that i want. PLease see below.
function log2syslog
{
declare COMMAND
COMMAND=$(fc -ln -0)
logger -p local1.notice -t bash -i -- "$USER:$COMMAND"
}
trap... (12 Replies)
Discussion started by: invinzin21
12 Replies
LEARN ABOUT LINUX
set_color
set_color(1) fish set_color(1)NAME
set_color - set_color - set the terminal color
set_color - set the terminal color
Synopsis
set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]
Description
Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple,
cyan, white and normal.
o -b, --background Set the background color
o -c, --print-colors Prints a list of all valid color names
o -h, --help Display help message and exit
o -o, --bold Set bold or extra bright mode
o -u, --underline Set underlined mode
o -v, --version Display version and exit
Calling set_color normal will set the terminal color to whatever is the default color of the terminal.
Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey
font color, while set_color --bold white will result in a white font color.
Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator.
set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and
incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of
ncurses and recompile fish against it in order to fix this issue.
Version 1.23.1 Sun Jan 8 2012 set_color(1)