General :: Record Operations In Log File From Terminal?
Jul 27, 2011
I would like to document my activity on linux terminal during some operation.I want to have text file which will contain all commands typed and output from those commands in a file.I know how to set this option in Putty but I have some problems in linux terminal.
<pre>
bash | tee output.log
</pre>
When I perform above spell, it only records STDOUT to file.on't have there STDIN,STDERRHow to have in this output.log file STDIN,STDOUT,STDERR
View 4 Replies
ADVERTISEMENT
Aug 24, 2010
I'm having this problem wherein the ppp program is altering the /etc/resolv.conf file when connecting.This, despite me having set file permissions to read-only. What could be the problem here?
View 9 Replies
View Related
Mar 3, 2010
I'm trying to set up automatic recording of user sessions when they login without their knowledge. I tried sticking the script command into /etc/profile and but that didn't really work. I also tried /etc/bashrc but that had the same affect.I have also tried setting the shell in /etc/passwd to SHELL=/bin/bash /usr/bin/script -q /testing.txt.
View 8 Replies
View Related
May 16, 2010
Sometimes while using Open Office, trying to open a file the dialog box takes 15 to 30 seconds of spinning balls until it shows me anything. Then changing a directory takes another 15 to 30 seconds. Visual feedback on selections take several seconds, and often I find myself a couple of subdirectories down from where I wanted to go due to caching of unacknowledged clicks.
My system is usually very, very fast, as one would expect from the specs. This problem happened, well, almost all the time with kernel 2.6.32-21-generic, now it just started happening again with 2.6.32-22-generic.During these slowdowns, opening Dolphin reveals the same problem, exceedingly slow response. While this is happening, top shows the system is not busy, and the hard disk light is not flashing. Idle is over 90% and user and sys are basically nothing. The system is basically doing nothing while making me wait.
View 8 Replies
View Related
Sep 3, 2010
Whenever I move files from a USB memory stick or external hard drive or any other such device the file only seems to transfer 99% of the data and often during moving file operations will freeze and an offer of 'force quit' will come up (although file operations will eventually vanish with the 99% of the file being moved).
Can anything be done to rectify problems with file operations?
View 5 Replies
View Related
May 5, 2010
How do you do things like list directory contents, mov/copy files, make directoriestc. in C?
View 1 Replies
View Related
Jan 3, 2011
i just installed the ubuntu-netbook package to test out unity on my system.. on seems to work fine but how do i copy my files and folders to a usb drive ? wen i open files and folders using unity..it jus opens in a black window.. i cannot right click on any item..i can just open it.. how how do i do my normal file operations using it ?
View 1 Replies
View Related
Jan 25, 2010
i have written block driver. its got registered succesfully.now i want to perform file opration like opening file reading/writing data into file which is stored into device.fter registration device node is created under /dev/xxx i am not getting, through this node how to open file which is stored in device.from one document i came to know that i have to use filesystem but in that doc how to use filesystem is not explained
View 4 Replies
View Related
Sep 9, 2010
Ok so I'm running Mint (not full Ubuntu), and I'm not sure if this is a problem with the FS, Kernel, what not.I'm running Linux Mint 9 - x64 - kernel 2.6.35.14 - and when I did a large file copy operation (9GB) it froze up my system until the copy operation was done. I couldn't even use Pidgin, Mozilla, or anything, when trying to open up another Terminal it froze as well.
View 1 Replies
View Related
Feb 25, 2009
How can I track IPsec module's operations? Can I find such a log file or entries in Linux?
View 1 Replies
View Related
Oct 4, 2010
I have a Toshiba laptop that seems to be freezing on extended operations involving the file system/hard drive. (that's kind of a guess on my part). The system has frozen during the last day or two when I:
- try a large file operation with Nautilus
- try exporting a large video file from Kdenlive
- try formatting the disk for a new install of Maverick (I decided that with the new version almost out, I might try upgrading in case I broke my system)
What I see is the screen freezing and the mouse does not move. As I said, I tried installing the Maverick RC from the Alternate CD (I wanted to do a minimal install). The install hung on the partitioning step and the caps-lock key started blinking (though I don't get this in other cases). I have booted into my Lucid live-cd and a Puppy live-cd to try Gparted, with the same results - the system freezes (but the caps-lock key doesn't blink). Puppy HAS performed better generally, for example I was able to complete my large file operation (backing things up!) but it is freezing on the partitioning step.
View 5 Replies
View Related
May 11, 2011
Let me know unix commands to implement set operations on strings.
View 9 Replies
View Related
Jan 28, 2010
I have just installed Debian testing on my new desktop and I am not very happy with performance - when I perform a disk intensive operation, e.g. upgrade packages in the system, everything seems to freeze, e.g. changing tabs in Iceweasel takes 3 seconds. I run the Debian on my 3 year old Thinkpad X60 ultra-portable, and I don't have these issues. (every single parameter of the laptop is much worse than the desktop).
I am using the default packaged kernel and scripts.
I run
hdparm -t /dev/sda1
And I got around 96GB/s, which is expected. What else can I try to make it work better?
rzes:/home/ga# hdparm -i /dev/sda
/dev/sda:
Model=WDC WD15EARS-00Z5B1, FwRev=80.00A80, SerialNo=WD-WMAVU1362357
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
[Code].....
View 8 Replies
View Related
Oct 13, 2010
[code]...
Well, let's suppose the file is very large, say 10 GB of disk space it is consuming. We perform the above steps. Which operations: cp (copying) or mv (moving) will be more efficient and less time consuming? The inode number 1566966 which was pointing to the file in my home directory is now pointing to the same file which is in some other directry, i.e. /tmp/. Isn't the inode value getting modified in some ways to point to the correct location / beginning of the data block on the hard disk? If the the physical location of the data would not change then we would not be able to free up space in our home directory. That means the mv operation is copying the file into some other location. In other words, it is also performing the cp operation first and then deleting the file from its original location, my home directory in the case above. However, when a file is copied it's inode value changes. But the mv operation is retaining the same indoe value. So, how to determine which operation - mv or cp - is more CPU-friendly or more efficient in terms of performance and time taken to perform the action?
View 1 Replies
View Related
Dec 9, 2008
How can I read .gz file direct on shell/terminal without decompressing the file?
satimis
View 5 Replies
View Related
Jul 7, 2011
I've developed a tiny webserver for home automation out of an ALIX 1D, and based on a debian lenny. It runs very smoothly and is now able to operate quite a lot of different equipment from a webapp. But i'm not sure how I should handle the compact flash, regarding read/write limitations. From what I've read the partitioning should be ext2, which would disallow the journalisation of the system. A utility to 'flatten' the repartition of write cycles exists, would it be relevant to use if the partition is ext2 ?
I will also disable all logging in execution mode (a debug mode will provide the logs). Is there any other parameters I have to take into account for maximum reliability (i.e. does the system randomly write in some files for various and potentially turned off purposes)? As for the mysql database, it's not important data, and it's actually reconstructed every time the server boots. Given this, is there a way to store the db in RAM rather than in a file? I'm not sure it's the right place to ask, but I sometimes see redirection to here from stack overflow.
View 2 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
Dec 22, 2010
Occasionally Ubuntu runs a file check, and I assume repair if necessary, at start-up. what do I type into Terminal if I want to run a file check without waiting for the automatic file check to start? The reason I ask is that my system wouldn't boot last week and after several attempts to reboot, the automatic file check came into play and corrected whatever was wrong. This process of rebooting my system several times before Ubuntu fixed itself was very time consuming and frustrating. I dare say that there is a command line to trigger this file check.
View 3 Replies
View Related
Jan 4, 2011
what is record length of file in common terms ?
View 1 Replies
View Related
May 19, 2011
I recently borked my video driver with a series of upgrades and found my system booting to the TTY with no access to the desktop, graphical login, or even X. I spent some days troubleshooting the problem and experimenting with possible fixes. I found myself wishing for some way to copy and paste from the TTY, or at least log all input and output to a file.
Code:
# bash 2>&1 | tee /tty-session.log
View 5 Replies
View Related
Apr 11, 2011
I just ordered a new unmanagd VPS I have already Apache, PHP and Mysql the only problem I have now is how to create a A,NS and MX record in CentOS. I dont know where the DNS zone file is in CentoS
View 2 Replies
View Related
Mar 13, 2011
I'm looking for a way to have the access log for my nginx install scroll up the terminal as lines are added to the log. I think I need a command like cat access.log | diff but I'm not sure exactly what it should be.
View 1 Replies
View Related
Aug 30, 2011
I'm looking for something identical to what command-k does in a terminal window on a Mac.
clear / ^L does not work.
View 1 Replies
View Related
Aug 2, 2010
I was wondering if there is a command to show a real-time creation of files. I basically executed a command that will created thousands of files and takes a long time. I want to check if it is still creating additional files or if ti got frozen.
View 3 Replies
View Related
Sep 30, 2010
How can we write a file and display in terminal at the same time. Like for example, when I do..
php -f file.php > testfile
That should save right.. but I want to display it in terminal otherwise.
View 4 Replies
View Related
Jul 1, 2010
I am using:
user@unknown:~$ sudo command -option > log
to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible?
I am using ubuntu 10.04 lts.
View 3 Replies
View Related
Oct 26, 2010
I know how to redirect the output of a terminal to a file. For example, if I want to list all the files in ~/Documents and output to a file called test.txt, I would do this: ls ~/Documents > test.txt The question is, can I copy the output to test.txt AFTER I have carried out the command? This would mean that I wouldn't have to know in advance whether I want to copy the output to file. I want to do something like this: ls ~/Documents Then this: <bash command for copying standard output to test.txt>
View 2 Replies
View Related
May 20, 2011
This must've been done before: I want to keep a log file open in terminal so I can monitor updates to it as they occur. My searches are coming up with everything but this situation... I must be missing some terminology or something key, because people do this all the time inside of other programs (NetBeans, or rails server, for example).
View 2 Replies
View Related
Jul 21, 2011
In order to make this conversion I have to use a text editor. This is tedious. Is there an easier way to do it, like some program I can run from the Linux or OSX terminal?
View 1 Replies
View Related
May 17, 2010
Now, I use Fedora Core (version 8) with core linux OS 2.6
I have some file data with size about 2G and I want to burn (write) this file to DVD rewrite.
I know linux OS can install software to burn data to DVD, but I don't have permission to install more software. I only use command line over Terminal (Gnome Terminal).
View 4 Replies
View Related