General :: What DMESG Command In Unix Do
Dec 10, 2010What exactly is the use of dmesg?
View 3 RepliesWhat exactly is the use of dmesg?
View 3 RepliesI tried to run % mvdir earlier and it said command not found. I then ran a search for it and still not found.Is there a place I can download the script for the command, and is there any information I should know post-download to get it to work?
View 4 Replies View RelatedI am very new to Linux and Unix. Is there a command list which indicates the UNIX command equivalents also?
View 5 Replies View RelatedI know the 'history' command give me a list of the commands I have typed into the Unix terminal.
How do I see the command history for all of the users currently logged onto the system?
This question may be silly and super easy for linux connaisseurs, but I was just wondering, for instance, I want to use the >find command to search for a file and send the results to a text file
View 5 Replies View RelatedIs it true that the UNIX commands to send a file to a printer for printing are system-dependent?
View 2 Replies View RelatedI'm pretty sure this is super simple, but I've searched and searched and for the life of me I can't find any info on how to limit the columns that display in the interactive top program with arguments passed from the command line. I recall seeing something formatted like this ...
~/top -f (kdx)
Which would only show the %CPU, UID, program name fields/columns. I'd like to display the results in a really narrow terminal window on the right side of my desktop.
I hope to add a wrapper script for the command with different parameters. For example, for any Unix command or script, like below:
command.sh -s p1 -o p2 -q p3
or
command.sh
Probably we could do as this way
cat wrapper
$1 $2 $3 $4 $5 $6 $7 | tee test.log
(assume it has 0 to 6 parameters)
and use it like
wrapper command.sh -s p1 -o p2 -q p3
wrapper command.sh
It is a little ugly to list all fixed parameter as above, do we have better code to handle various parameters?
I want to visit a url but this shall be invoked by a shell script. Anyone let me know the command to hit a url in unix.
View 5 Replies View RelatedI would like to find where logs form dmesg(command) are stored on my hdd drive. I'm testing broken hdd with badsectors, and I've got some i/o errors, that I can read (just the most recent) using dmesg command (dmesg buffer). I would like to see whole log, that is interesting for me, but I cannot find where it is stored in /var/log
dmesg command(buffer) (last few lines)
Code:
[245129.080558] end_request: I/O error, dev sdb, sector 218246624
[245129.080562] Buffer I/O error on device sdb, logical block 27280828
[245132.037921] sd 2:0:0:0: [sdb] Unhandled sense code
[245132.037925] sd 2:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[245132.037928] sd 2:0:0:0: [sdb] Sense Key : Medium Error [current]
[245132.037932] sd 2:0:0:0: [sdb] Add. Sense: Unrecovered read error
[245132.037936] end_request: I/O error, dev sdb, sector 218246624
[245132.037940] Buffer I/O error on device sdb, logical block 27280828 .....
When looking for a certain word or phrase in the man page of linux command, one can type '/' followed by the word/phrase to search for it. What I'd like to be able to do is to search for the next occurrence of the word/phrase without having to type it out again. Kinda like when you use 'ctrl+f' in a browser to search for a word, and then press 'enter' to find the next occurrence of that word.If this is possible to do, how do I do it?
View 2 Replies View RelatedI am trying to ssh into my server from the command-line without including the username in the url. I do not want it to send any username, as it currently takes the active account and sends that as user.ex:
ssh server.com -> (doesn't send default username)
instead of [URL] I would want to input username directly into the server, just like it is done using putty on windows. he wants to be prompted for a username, rather than having to provide one when connecting - but I don't really see the utility in such a thing. - birryree Sep 8 at 17:41
Unix command that allows to know which process is running on processor core?
View 2 Replies View RelatedI sometimes get confused by the varying command line options I need to run common Unix archiving and compression software (e.g. gzip, bzip2, zip, tar).
Is there a program out there that can just Do What I Mean for common cases? For example:
strings in Unix and Linux extracts printable strings from a binary file. Is there a version of this for Windows? I couldn't find one.
View 2 Replies View RelatedIm using this unix command(in a php file) to remove a certain string and then remove the whitespace left by that string. Unofrtunately in many cases, the files get completely erased. Is there a workaround?
Code
<?php
$dir = "./";
$rmcode = `find $dir -name "*.php"
[cod3e]....
How can I troubleshoot disk with 'dmesg' cmd ? How to distinquish :
- physical disk error
- file system corruption
What is I/O Error ?
was trying to understand the messages the DMESG gives .Does any one knows how to debug the DMESG mesaage or any link for the same ?
View 6 Replies View RelatedI've been getting messages, that should be in the dmesg log, on the console.This has been happening for a while, but I finally got tired of them.My system is Fedora release 14, Kernel 2.6.35.11-83 on an x86_64.When I reboot I get the following displayed with the login prompt.[ 52.492937] readahead-collector: starting delayed service auditd[ 52.795508] readahead-collector: sorting[ 53.033970] readahead-collector: finished
View 2 Replies View RelatedI have a gentoo distribution and need to store the information of dmesg collected until a system crash. At present, after a reboot or a crash the information in dmesg are lost and are not available at the next reboot. How can I save all the information in dmesg until a crash and read them after the succeed reboot?I also checked for dmesg.x files in /var/log or similar files but with no success.
View 4 Replies View RelatedI've read up some of the posts on this forum, but can't seem to find an answer. I have a web service within an Apache Tomcat instance installed on a Redhat linux server. I only have shell access to the server, and need to monitor outbound network traffic from my web service. Is there a unix command that will allow me to monitor all outbound traffic? I'm thinking fiddler, but a unix version? I've heard of things like ntop and iptraf, but I don't think those will help me in this instance.
View 2 Replies View RelatedI recently assembled a new computer so that all hardware is pretty new. Since then I've been experiencing some problem with IRQs when running Debian 6.0. On random occasions, usually after an hour or so of running I hear a beep and this shows up in dmesg:
[code]....
Terminal with real time dmesg output I want to use tty12 for system messages. Is there a way to mirror all kernel messages to there?
View 2 Replies View RelatedKernel driver function was called via ioctl and returned success, but when I checked the kernel display buffer with dmesg the printk message was not there. Then when you do lsmod, the driver you were calling showed "used by zero". So it seems like the kernel driver was not accessed. In the kernel driver, I had many printk statements, but nothing printed in the buffer. if the driver get accessed and what could cause this?
View 1 Replies View RelatedAfter reading a SDHC (camera) card with my computer in a non-HC compatible card reader, i guess i destroyed the partition table.
After getting a SDHC-compatible reader i found it seems there is no part. table on the card and no fdisk(1), badblocks(1) can read that card.
Seems they will wait forever to get a part table.
dmesg says:
How to recover the card?
i want to send mail from unix mail command to my yahoo-id with attachment, but i want to receive it as attachment.
View 1 Replies View RelatedWe switched from unix to linux and we have an old report that extracted data from a database, output to an ascii file and then sorted the results in the file based on different arguments. The report now blows up when it runs,and I can only guess it is because the options for sort on linux differ slightly from unix.For example, here is one of the commands issued from within the report app that ran on the old unix box:
if sort-sequence = "descending" then
'sort -t~" -f +3.0f -4.0 +5.0r -6.0 -f '
else
'sort -t~" +3.0f -4.0 +1.0f -2.0 -f'
I will eventually rewrite the report to store the data in a local table, but I can simply adjust the options to suit the requirments of linux. Basically, I need to know if this can be a quick fix for the short term.
i have been using samba to gain access into windows computer through my pc which has fedora 8 ..can i access the unix machine from another unix machine? is yes then what is the procedures ?
View 4 Replies View Relatedfile 1 :
DB_NAME FIRST_ACTIVE_LOG DBPARTITIONNUM
-------- -------------------- --------------
BP1 279231 0
BP1 12735 1
BP1 12734 2
BP1 12735 3
BP1 12616 4
[Code]...
It's a dell ubuntu. But I don't know why I can't do:
myuser@192.168.0.103
which is my local-ip.