By predictably I'm saying that in all of the cases when it disappears it usually tends to be gone after some unknown crossed line of reboot counts (in the sense that you can bet it will happen sooner or later), never during login session, because I use commands from my .bashrc on a frequent basis and nothing signals about it not being there. But, as I said, after some reboots it will simply erase that file.
Quote:
What this command lists?
Can I prevent the system from modifying it by setting up a "backstone" on its way?
I search the web and found the following statements
.....
The /etc/profile file is a system wide initialization script which is run at login time for each user, while .profile is the users own login initialization. The .bashrc file is an initialization file run by each interactive invocation... (1 Reply)
Hello,
I got this question which tells me to customize my login script. Some people in the forums suggested to modify the .profile file in my home directory. I did so, but none of my customizations show up when I open the terminal after.
So, I tried to modify other files in my home directory,... (1 Reply)
hi i am using cygwin and would like to modify my .bashrc file. How can search to find where it is? I have looked at multiple bashrc file in /etc but none of them seemed to work..thanks (12 Replies)
Hi experts,
I am using bash shell and I cant find any .bashrc file in my home dir. Can anybody please help me out here....
If .bashrc file is not there, from where my shell config operates? Also I want to set my prompt like...
$
Please advice. (5 Replies)
I want to write a script that deletes files inside the dir. However, the script
should also allow the user to confirm by pressing (d) key before deleting files..
#!/bin/bash
for file in $1/*
do
size='ls -l $file | cut -f 5 -d " "'
name='ls -l $file | cut -f 9 -d " "'
... (1 Reply)
Hi
I am using sed command to make SCORE=somevalue to SCORE=blank in a file.
Please see the attached lastline.txt file. After executing the below command on the file, it removes the last line.
cat lastline.txt | sed 's/SCORE=.*$/SCORE=/g' > newfile.txt
Why does sed command remove the... (3 Replies)
I am using Tbird as it came with Slackware 13.37 and everytime I send something I get a message 1 or 2 drafts deleted. Should it be doing that? If not has this been reported ? How can I find out if it was reported? I have no drafts to delete. (2 Replies)
i am trying to remove a directory using rm -rf command but its not getting removed.. it doesnt throw any error also.. i am logging as the owner of the dir and removing it but still no luck.. i am able remove a file but not a directory.
i am using solaris 10 (12 Replies)
Hello All,
I was wondering if there is a way to execute a command in my ".bashrc" file based on how I logged into the PC?
I was thinking maybe there is a way to check how the user (*myself) logged in, maybe somehow with the who command along with something else, but I'm not sure... I know I... (7 Replies)
Discussion started by: mrm5102
7 Replies
LEARN ABOUT HPUX
last
last(1) General Commands Manual last(1)NAME
last, lastb - indicate last logins of users and ttys
SYNOPSIS
file] [name ...] [tty ...]
file] [name ...] [tty ...]
DESCRIPTION
The command searches backwards through the file (which contains a record of all logins and logouts) for information about a user, a tty, or
any group of users and ttys. Arguments specify names of users or ttys of interest. The names of ttys can be given fully or abbreviated.
For example, is the same as If multiple arguments are given, the information that applies to any of the arguments is printed. For example,
lists all of sessions as well as all sessions on the console terminal. The command prints the sessions of the specified users and ttys,
most recent first, indicating when the session began, the duration of the session, and the tty on which the session took place. indicates
if the session is still in progress or if it was cut short by a reboot.
The pseudo-user logs each time the system reboots. Thus, is a useful command for evaluating the relative time between system reboots.
If is interrupted, it indicates how far the search has progressed in If interrupted by a quit signal (generated by a Ctrl-), indicates how
far the search has progressed, then continues the search.
The command searches backwards through the database file to display bad login information. Access to should be restricted to users with
appropriate privileges (owned by and readable only by because it may contain password information.
Options
The and commands recognize the following options and arguments:
(none) If no arguments are specified, prints a record of all logins and logouts in reverse order, most recent first.
When used with
and displays the user's host name as it is stored in the files and respectively. The host name is displayed between the
tty name and the user's login time.
Limits the report to
number of lines.
Use file as the name of the accounting file instead of or
Use file as the name of the accounting database instead of This option should be used along with the option.
Display the fields in long format if this flag is used
along with the flag. Without the flag, normal output is displayed.
AUTHOR
was developed by the University of California, Berkeley and HP.
FILES
Bad login database
Login database
New login database
New bad login database
SEE ALSO login(1), utmp(4), wtmps(4).
last(1)