General :: Current Time - File Path No Longer Valid
Aug 21, 2011
I am reading about jiffies in linux kernel. In one of the related example in the book Linux Device Driver, the author use
head -8 /proc/currentime
to print out some time information.
However this file is not present in my linux installation (kernel: 2.6.32-131.6.1.el6.x86_64). Why is it the case? Is it because the file path is no longer valid, or it is a distribution feature thing? It is not present in OSX too. What would be an equivalent in OSX?
View 1 Replies
ADVERTISEMENT
Apr 30, 2010
I am total new to linux as I worked mostly on RTOS (symbian). My problem is, I need to find the file IOSTREAM.H and I am following commands below:
1) cd /
2) find . iostream.h ( finds the file / directory from the current path)
It shows No such File or Directory
View 7 Replies
View Related
Jun 7, 2011
I recently upgraded from Fedora 13 to Fedora 14. Now, when I run the Software Update graphical utility, I am getting an authorization failure. I tried using yum update from a command line after issue the SU command and it seemed to work. I would much prefer to use the graphical utility but can't figure out how to give myself permission for this. I also noticed that my graphical shutdown utility is now disabled (grayed out).
View 6 Replies
View Related
Mar 23, 2010
running Windows 7 64bit with VMware Workstation 7.01-build 227600. I have some knowledge of Linux, I have installed f12 and have updated the system as of 03/22/2010. All updates completed successfully.
1) How do I install VMTools on the f12 (after mounting the CD/DVD tool package)
2) How do I update the gcc files it says are dependencies?
Here's what I get on installation:Before you can compile modules, you need to have the following installed...
make
gcc
kernel headers of the running kernel
and then I am prompted for this input from the install script:
Searching for GCC...
The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]
and this is where I get stuck. How do I get around this or satisfy the requirements for the install?
View 5 Replies
View Related
Jun 19, 2011
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 Related
Mar 1, 2011
If i am using a terminal window (shell) and I am on a deep point of a folder tree it becomes difficult to read what i write, as well as the entire content of the window.Is there a way to shorten the name of the current path in a shell / terminal?I know that aliases can be used for commands, does it exist anything similar for paths?
View 14 Replies
View Related
Oct 8, 2010
I use this command:
Code:
find ./ -atime +360
to figure out the files that haven't been accessed since 360 days. The command above will return results like this:
Code:
/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc
I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:
Code:
mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext
But I want the executed command to create this path
Code:
/old-files/uploads/2010/02/
If it doesn't exist.
View 6 Replies
View Related
Dec 25, 2010
How can I print the current time of my system with a batch file. My os is ubuntu.
View 4 Replies
View Related
Jun 26, 2011
Why is the output of the following commands different?
root@vmi2115:/var# hwclock
Sun 26 Jun 2011 01:21:38 PM CEST -0.273230 seconds
root@vmi2495:/var# date
Sun Jun 26 15:21:39 CEST 2011
root@vmi2115:/var#
And can I change the current time on Linux?
View 4 Replies
View Related
Mar 28, 2010
I just wrote an html file, but somewhere on the write I lost count of the paragraphs.
In an html file paragaphs starts with <p> and ends with </p>
What I want to know is how to find the valid paragraph.
I used grep '<p>' file_name | grep -wc '</p>' . I dont know if this works.
View 7 Replies
View Related
Feb 18, 2011
I want to know the time on a server accurate to the millisecond.there's this way:
local $ ssh user@servername
Welcome to server!
server $ date
Fri Feb 18 11:27:50 EST 2011
But I need more accuracy. Is there a command that will be more precise?
View 2 Replies
View Related
May 21, 2010
Sometimes it is possible to trick a Linux app by calling it like this:
HOME=/tmp/foo myapp
This would make myapp think /tmp/foo is the home directory, it won't try to get the user id, find its home directory via getpwent(). This is useful when myapp must be forced to dump some of its config files into a non-standard location different than ~.
A similar trick can be done like this: LANG=foo LC_ALL=bar myapp
This is useful when myapp needs to be called once with a different locale without having to make the change persistent by using the export bash built-in or even modify stuff in /etc/profile.
Is it possible to pull the same trick with time and date? The goal is to make an app use another time than the system ones. The final goal - to make timestamps that appear in logs/commit messages not being tied to the system time.
View 1 Replies
View Related
Aug 26, 2010
I want to run a script that runs after every 15 minutes that i will do using crontab. But in script want to search a string from the last 15 minutes logs in log file containing data of whole day.
how i can search the string according to time difference that is logs from from current time and current time - 15 minutes.
Sample logs are as follows:
26-Aug-2010 16:38:46,055|9172310750|subscription_app|31ba267e%3A12aadd47bdc%3A50e9|ChargeAmount|ChargingIntercep tor - subscriber details processed sucessfully- {arg0.referenceCode=balanceEnquiry:true;subsChannel:Unknown;channelType:Subscription;transactionId:3
[Code]....
View 6 Replies
View Related
Jun 9, 2010
Is there a way to get the current time as provided from NTP (not the currently set time on the server)?
View 4 Replies
View Related
Apr 10, 2010
when i search in nautilus folder browser it search in my home path,how i can say to search in the current path?
View 2 Replies
View Related
Jun 3, 2010
I had a situation in which the the path of the file to be copied is written in other file and I had to copy it using shell script..I can use cp $(cat /home/robert/location.txt) /media/sda1 on normal linux shell...But I am using buildroot script where $(cat /home/robert/location.txt) evaluate to nothing..is just blank..
View 1 Replies
View Related
Dec 2, 2010
It looks like the desktop amusements that used to work under KDE 3.5 no longer work in the current v4. I've installed xpeguins, but it does not seem to produce any output on the display. I have enabled desktop effects, but no penguins appear. Is there some setting needed for this to work?
I'm running SUSE 11.3/KDE 4.5.3.
View 1 Replies
View Related
Jul 12, 2010
Assume I call a certain tool in terminal like
foobar -myoption
But a) there exists more than one installation of "foobar" on the system or b) I don't know where "foobar" is installed.
How can I find out WHICH foobar resp. WHICH path belongs to the currently active foobar tool?
I prefer a cmdline command with option similar to:
findactivepath -tool=foobar
....
Output: Used location=/usr/bin/foobar
I don't want to dig around with PATH investigations by searching every PATH component. Furthermore I don't want to get recommendations and expectations like "normally tools are installed in...". Think of unusual installed software.
View 1 Replies
View Related
Jan 27, 2011
I have file which consists of many files with their path,i need to check for the file exists in the given path,how to check?
View 12 Replies
View Related
Aug 13, 2010
Does executable file contains the precise path to SO file? Should it be compiled with precise knowing of SO file location?
View 8 Replies
View Related
Mar 5, 2011
I stuck a flash drive into a usb port this morning, and the device notifier failed to show. I opened Dolphin, and I noticed that nothing that should be mounted was showing up in the left pane. I always have seen my Windows install, as well as another partition that has Slackware. I can navigate to /mnt/vista and its all there. I can also go to /mnt/Slackware and its all there. However, the flash drive does not show.I can manually mount the drive and all is well as root. I can't even tell you when this started. I am using Alien's 4.6 KDE packages with all the deps. I just opened mc and checked everything. HAL is disabled and has been for a long time. All did work after disabling HAL.Its not just the flash drive, it effects anything - music cds, blank media, nothing works automagically. Google hasn't
View 9 Replies
View Related
Jan 16, 2011
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
View 14 Replies
View Related
Nov 14, 2010
I am trying to load a driver (xxx.ko) and uncertain if the path given is correct.
I do not have any direct access to my linux device, so I need a small script that will create a text file telling me if the file was found or not.
View 6 Replies
View Related
Jan 27, 2010
My office has a box which is, by necessity, dual-boot WinXP/Slack. The Slackware I'm running there is -current, all great and fine. Until now... It turned out that my mobo, an ASUS P5KPL-CM, died after a power surge. Since the XP needs software activation, we replaced it for an exact copy of the mobo. After the change the box worked fine in XP, and I was able to connect to the network via the Ethernet interface. BTW, the Slackware version is Slackware-current, updated as of the Jan 9 update (after that I was no longer able to connect to the Net with Slack). However, in Slackware there was a problem: eth0 was no longer recognized. Using /sbin/ifconfig only listed the lo (loopback) interface. The lspci output is:
Code:
01:00.0 Ethernet controller: Attansic Technology Corp. Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0)
Subsystem: ASUSTeK Computer Inc. P5KPL-CM Motherboard
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
[code]....
View 5 Replies
View Related
Oct 13, 2010
i can download but i cant run anything because there is no ar file path for ark. please dont tell me to download something to get the ar file path because if i download it i can't open it
View 1 Replies
View Related
Mar 5, 2011
Usually in Gnome, under Ubuntu, the terminal command I use is:
Code:
gnome-open (path)
In most cases, I won't know the path and I'd rather not search for it with:
Code:
locate (file name)
View 1 Replies
View Related
Jul 21, 2011
what is the file and path name of the configuration file to which you would add to the AllowUsers charlie linus lucy?
View 3 Replies
View Related
Dec 17, 2010
Kernel 2.6.21.5, slackware 12.0 For a given app run by me as user john to be able to create a file in /foo1/foo2/, what do I need? (a) john to have write permissions in /foo1/? (b) john to have write permissions in /foo1/foo2/? (c) john to have write permissions in both /foo1/ and /foo1/foo2/? Any hint will be welcome. Note: No. It's not homework. KTorrent complains when trying to create the files being downloaded, saying 'permission denied'. But I think he is being run by another user. I can explain in a different thread.
View 3 Replies
View Related
Feb 11, 2011
I want to assign the path of a sourced sub.bashrc file to an environment variable. E.g. if I type (or execute) from a known relative location
$ source ../../someDir/sub.bashrc
the sub.bashrc should set a variable like
export MyOwnLocation=/home/user1/unknownlocation/someDir
The problem is I can't use $0 as reference because the script is only sourced not executed. I also don't want to hardcode the path because the location might change and there will be more copies. Is there an easy way to create this information from within the the sourced bashrc file? I use Gnu bash 2.05b on Suse Linux 9.
View 6 Replies
View Related
Aug 24, 2010
I have installed a software and set the variables in the .bashrc file to avoid setting them everytime I would like to run te software. Now I have installed a new software and would like to do the same thing in the .bashrc file.How can I add the path to the new software directory without affecting the first software path.
View 2 Replies
View Related