General :: Adding The Time To VT's
Apr 3, 2010I wonder if its possible to add the time to virtual terminals? for example something like this:
Quote:
Welcome to linux 2.6.27.31-smp (tty2) 14:35
I wonder if its possible to add the time to virtual terminals? for example something like this:
Quote:
Welcome to linux 2.6.27.31-smp (tty2) 14:35
One of my scripts generated an output like this:
0:0:35
0:0:36
0:0:28
0:0:37
0:0:43
0:1:2
This is actually in a time format(hh:mm:ss) and how do i add all the values and get the sum in seconds . the output should be in seconds like total number of seconds : 241 secs
There are many time zone files accessible from the command line that don'thow up in the GUI ("system-config-time"). How do I add these time zones to the GUI
View 1 Replies View RelatedI need some assistance with my Ubuntu server setup.
I use a Free BSD Linux server at work that I SSH to. When I telnet to the server I see the following:
[8:23am] myhost:/home/pmiglia]
I like that I see the time and path just like that.
Now I have been trying for DAYS to get my Linux server to display with the time but with no luck
FYI, new users and old users do not display like this when they SSH, only me as far as I can tell.
When I installed CentOS, I forgot to modify the settings of Network Time Protocol. I need to do the following:
1. Enable Network Time Protocol.
2. Add a new ntp server to the list.
How I can do this after the installation. Is there an utility to handle this? or do I need to modify any files manually?
When I search addons with firefox, it takes 4 mins to connect to server, and after approving to ad it, it again takes that much time to connect to download. While downloading it's ok, but connecting to server takes time. This is for all addons. Is there any body having same issue?
View 7 Replies View RelatedHow do I change the default OS on grub, and adding more time to make my choice?
View 3 Replies View RelatedI am trying to rename multiple files in a directory and add the Date/Time stamp to the file name.
Example:
file1.txt
file2.txt
file3.txt
Renamed to
2009_02_01_21.txt
2009_02_02_21.txt
2009_02_03_21.txt
I am able to accomplish this using this command:
mv file1.txt "`date +%Y_%m%d_%H`".txt
But I want to automate this task, I have many files to process and I dont want to do them one by one.
I already tried this but it does not work
mv *.txt "`date +%Y_%m%d_%H`".txt
I just set up denyhosts and it worked properly the first time adding lots of ips to the hosts.deny.I then set it to run every 12 hours noon and midnight.I wanted to see if ran properly and I got all this.Does it look like its working?
Code:
May 15 12:00:01 hyrule CRON[14286]: (root) CMD (python /usr/share/denyhosts/denyhosts_ctl.py -c /usr/share/denyhosts/denyhosts.cfg )
[code]...
Under a Linux shell, how can I change the creation time of all a folder's files to the current time?
View 2 Replies View RelatedI have a linux (Slackware) machine and the time/date is like, June 23rd 2003, 10:00am (It's 11 here) and I am not able to set the time to have it correct. I change the timezome to Montreal but the time is still wrong.
Is there a way to force it to sync with my domain controler or even another online NTP server?
I'm just wondering what the limits for time are. I have a program that always takes exactly 20 ms, so I assume this is the lowest it can measure, but I want to see if there's some sort of documentation of this.
View 3 Replies View RelatedMy computer has different time when booting to linux or Windows.How to make the time the same?My computer time is 10:57pm Apr 14 when booting to linux.My computer time is 2:57am Apr 14 when booting to Windows Vista Home Premimum SP2.Both OS are set to the same time zone (GMT-5. Eastern Time US & Canada).
View 5 Replies View Relatedget the values for the user time and system time for a process.i have tried getrusage to get values of ru_utime and ru_stimebut these don't seem to be correct
View 3 Replies View RelatedI admit this has been a particularly bad year for me, but it isn't THAT unusual by my standards. I typically spend I would reckon quite honestly about 70-80% of my time with computers just fixing stuff up that either I broke or was broke in the first place. Usually it's the latter by some considerable margin. That's really inefficient, isn't it? I just wondered what others' experiences are of this phenomenon. Obviously I don't do computers for a living or I would have starved years ago. So what is the Panel's consensus view on the percentage of wasted time we should expect to spend, on average, "running just to stand still" on maintenance tasks?
View 5 Replies View RelatedI was created one folder in linux with current time was 1978(For example). I was moved this folder to usb(FAT32 file format).While seeing this folder in window its not showing the folder time created time stamp, because the USB file system only support the year after 1980 . But again i am putting the same folder in linux ,its showing the correct time stamp.How is it possible? Because FAT32 only supports timestamp after 1980, but still its showing 1978 in linux system
View 7 Replies View RelatedI was working with timezones when I came across a very strange error. Date command showed Invalid date/time when I set the date/time to 27 Mar 2011, 02:00:00. On further analysis, I observed that the time was jumping to 03:00:00 after 01:59:59 when the date is 27th Mar, 2011.
View 3 Replies View Relatedmeasure kernel space time and user space time?
View 1 Replies View RelatedI want to record an internet radio station starting at 2:00am tomorrow morning. The specific program on the radio station lasts until 6:00am. The command I need to run to record the station is: Code:mplayer http://wjcu.jcu.edu:8001/listen.pls -ao pcm:file=indie_heat_of_the_night.wav -vc dummy -vo nullI'd use cron, but 1. I'm not sure how to and 2. it seems unnecessarily complicated for something that I only want to run once. If cron is the only/easiest solution, I guess I'll just have to resort to that, but I'd rather not.
View 12 Replies View Relatedok i need to add the repo [URL] to the yum config
i found this but i dont know how to do it for the repo that im using
it says to add this to the /etc/yum.conf file but how do i do it for rpmfusion.org? what do i have to change to the following lines? or is there another way
[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=http://apt.sw.be/dries/fedora/linux/$releasever/$basearch/dries
how do I add more repos to yum? Using Fedora 13, kernel: 2.6.xx. Done it before, but can:t remember the process. Using 64-bit by the way.
View 1 Replies View RelatedHow Does sed or other command edit the 1st line in a file and comments it? Meaning add "#" to the first line in a file for example?
View 6 Replies View Relatedi would like to know the commands that one use when adding a new user?
View 3 Replies View RelatedI'd like to add another network card to my linux box. I've plugged in the hardware and rebooted, but I do not see a second network config file under network-scripts. Also, if I hit ifconfig -a, I only see one network listing. How do I proceed?
View 3 Replies View RelatedCentOS 5.3
I have added a new user by doing the following:
useradd -m jobBlogs
It creates the home directory with initial files. However, when I do the following
ls -a
there is no .ssh directory.
Am I doing something incorrect here?
I start/stop lots of new instances as I'm learning to use Amazon EC2. Every temporary instance is added to the known_hosts file. Is this ever a problem for others who use EC2 a lot?
I'd like to tell ssh to skip this step anytime I connect to amazonaws.com. Is there a way to do that in the config? I'm using Linux & openssh.
I'm seeing on my Fedora 15 box. I want to add the superuser to a group called, say, thisgroup.thisgroup is absent. Surprisingly, when I thought of editing /etc/group, root was present there!Anyone on why groups didn't show my new addition?
View 3 Replies View RelatedI just loaded Fedora 10 onto my laptop and now I'm trying to add a USB wireless adapter with little to no luck (well no luck at ALL.)
# lsmod
Module Size Used by
nls_utf8 5632 0
fuse 49436 2
bridge 43796 0
[Code].....
I just installed nagios to a Cent 5.4 box. Everything is working so far except I want to add a plugin I found on nagios exchange. The file has a .pl extension. I am unsure how to add the plugin to the rest of nagios. Do I need to add it to a nagios folder and then define it. If I just try to run the pl file I get a error mesg. I am unsure if the error is caused by system misconfig or because the plugin is not installed. The plugin is check_dayime.pl and the error I get is Can't locate Date/Parse.pm Perl seems to be working as I can run simple perl scripts and perl -v spits out v 5.8.8
View 3 Replies View RelatedI have a fairly long list of data that I am trying to put into a math program (maple) but before I can do that I need to edit the format of the data such that at the end of every 25th line I add a comma. I would prefer a solution that uses vi, but if that's impossible sed would be fine also (or awk).
View 6 Replies View Related