General :: Ps Command Is Visible In 80 Characters?
Sep 1, 2010When i am running ps -ef command I am getting the execution of the commnad in "80characters"
View 5 RepliesWhen i am running ps -ef command I am getting the execution of the commnad in "80characters"
View 5 RepliesI want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command by finding the most recent commmand having the same first few characters.
View 1 Replies View RelatedI got indication of zombie process via top command
Code:
Tasks: 321 total, 1 running, 319 sleeping, 0 stopped, 1 zombie
I don't have 'Z' indication on 'Status' column
How could it possible to identify this process ?
When I upload a file usind the scp that contains the German characters these characters get changed to . For example, a sentence in an html file like this
looks like this
Why are this characters getting changed?
sed '/
$/ {N s/
//}'
sed: -e expression #1, char 10: extra characters after command
I want to understand what is wrong with my command line. When I can do the some of following in a script but not in a command line. I have been working through the tutorial at [URL]. When I got stuck at the section Working with Multiple Lines. These script works fine.
#!/bin/sh
sed '
# look for a "#" at the end of the line
/#$/ {
# Found one - now read in the next line
N
# delete the "#" and the new line character,
s/#
//
}' file
In my case I am looking for or return ^M.
#!/bin/sh
sed '
# look for a "#" at the end of the line
/
$/ {
# Found one - now read in the next line
N
# delete the "#" and the new line character,
s/
//
}' file
The problem is when I try to convert it to a single line shell command it gives me an errors.
sed '/
$/ {N s/
//}'
sed: -e expression #1, char 10: extra characters after command
sed '/
$/{N s/
//}'
sed: -e expression #1, char 9: extra characters after command
sed '/
$/{Ns/
//}'
sed: -e expression #1, char 8: extra characters after command
I want to understand what is wrong with my command line. When I can do the following in a script but not in a command line. I have created a sed script to do the work I want.
cat test.sed
#!/bin/sed -f
/
$/ {
N
s/
//
}
Need little advice running this command.
watch -d 'ps aux | awk '{print $4" "$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr | head'
I get this error message from AWK. awk: cmd. line:1:
{print awk: cmd. line:1: ^ unexpected newline or end of string
I have tried all the usual by trying to escape the single and double quotes in the command but same result. The end result should be the a listing of memory hungry processes that are scanned every 2 seconds (watch default value).
Anybody know and command to count any characters in file? I would like to know the total number of character " (quote) in file. My idea is to check if in a script the total number of this character is pair.
View 4 Replies View RelatedI have a bunch of files (around 900) that have some special characters. Some of the files contains example, and quoting "[useless] filename (something)"so what I want is just to strip the brackets and parenthesis, some are folders, others are text files
View 1 Replies View RelatedI am playing with various characters in the command- line interface trying to learn what they mean and when i should use them.
View 7 Replies View RelatedI've written myself a linux program "program" that does something with a regular expression. I want to call the program in the bash shell and pass that regular expression as a command line argument to the program(there are also other command line arguments). A typical regular expression looks like "[abc]_[x|y]".Unfortunately the characters [, ], and | are special characters in bash. Thus, calling "program [abc]_[x|y] anotheragument" doesn't work. Is there a way to pass the expression by using some sort of escape characters or quotation marks etc.?
(Calling program "[abc]_[x|y] anotheragument" isn't working either, because it interprets the two arguments as one.)
I've written myself a linux program "program" that does something with a regular expression. I want to call the program in the bash shell and pass that regular expression as a command line argument to the program (there are also other command line arguments). A typical regular expression looks like "[abc]_[x|y]". Unfortunately the characters [, ], and | are special characters in bash. Thus, calling "program [abc]_[x|y] anotheragument" doesn't work. Is there a way to pass the expression by using some sort of escape characters or quotation marks etc.? (Calling program "[abc]_[x|y] anotheragument" isn't working either, because it interprets the two arguments as one.)
View 8 Replies View RelatedWhile modifying the definition of my PS1, I saw that "[" and "]" markers should be added to help bash to compute the right display lenght. Many exemples on the web do not use them or even mention them.I searched for a solution to add them automatically, like with sed, but I didn't find any example.Are they still needed and is there a recommandation not to use sed to define PS1?
View 1 Replies View RelatedI need to find files that contains do in their name, it can be anywhere in the word, exsamples downloads, loldo, asdomk... ?
View 1 Replies View RelatedAfter typing "man cut" in my terminal I can't seem to find this answer.
I am trying to write several shell scripts and want to remove the 'lp:<package name>' from the beginning of each line of the output of "bzr ls" as well as any notices at the beginning of the output, leaving only file and folder paths.
What command could I use in terminal to delete all ASCII characters? That is, delete a-z, A-Z, 0-9, and all punctuation? I have a file containing Chinese characters, and I want to remove everything else and leave just the Chinese.
I can use grep to leave only the lines that have Chinese in them, but this still leaves a lot of non-Chinese stuff on those lines. Does anyone know how I could actually remove everything that isn't Chinese?
I have my OpenSuse 11.1 box set up with utf-8, however, every time I try to open a file with utf-8 characters with vi it can't handle those characters properly.
View 6 Replies View RelatedI installed ubuntu 10.04 its working fine
but cd rom is not visible
how can i rectify this problem
I am working in a production env & working with SAN team to extend the new hard disk in the production env.I wanted to extend the disk through LVM as theing disk is fully utilized.The disk is added in the production env by the SAN team but how can I see that the disk is added so that I can extend the disk using LVM.Is there any command so that I can see that the disk has been addeed in the OS(redhat).
View 9 Replies View RelatedI have an old external 20GB HD formatted with NTFS. It used to be able to mount in Ubuntu just fine. One day I copied a huge file into it, then suddenly it failed to mount. nitially the message was something like the following:
Code:
Error mounting: mount exited with exit code 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
[code]...
The desktop and icons on my Fedore Core 4 Server is not displayed all of a sudden.I have browsed toapps/nautilus/preferences/show_desktopand had enabled the show_desktop item
View 3 Replies View RelatedI have a problem with external HDD that became invisible on Fedora 14. It contains very important files and I need to get them out. It was my long-time plan, but I have not started it yet as HDD worked fine till last week. I should mention that when I tried to connect it to mother board via IDE , Fedora read some errors. When I do it through USB, the indicator on HDD box is red, perhaps, stating the mistake.
View 12 Replies View RelatedI've got a new machine with an Nvidia GeForce 210 graphics card with HDMI output. I'm trying to get sound to go out that HDMI cable, but although the device shows up on lspci, I can't get it acknowledged by aplay -l, which lists the audio devices known to the audio driver.
lspci shows (in part): 00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1) The first is the motherboard audio, and it works fine. The second (I assume) is the graphics card with HDMI. But aplay -l lists only the motherboard analog and S/PDIF outputs:
[Code]...
I can't see how I'm going to select a device that the drivers think isn't there. how to make that device visible to the sound drivers? I'm running Ubuntu 10.04 with a 2.6.32 stock kernel. The Nvidia driver version is 195.36.24.
i've read enough posts on this issue but i'm actually not getting how to configure user agent so that my distro icon can be shown instead of penguins' head.. i usually catch a thing so quickly and i've no doubt about my technical skills but this is the first time i'm unable to figure out such a small issue... i'm using fedora15 and firefox5.0..
View 9 Replies View RelatedComing from non linux bod - but to create mount points on nas that are visible do we have to put entries in both fstab and rc.local?
View 1 Replies View RelatedI'm travelling currently so the last network i connected successfully to was my home wpa-psk network. I hadn't tried anything until i got to my accommodation that is an open network (that I'm on now on the Win7 partition on my laptop).
The network (and a similar archetypical 'linksys' open network, aswell as some protected local networks are correctly displayed in network-manager and upon selection, it happily spins around to its hearts content for a while before saying 'no chance boy'.
/var/log/syslog spills out the usual combination of wpa_supplicant and kernel messages, the most interesting of are that the kernel deauthentication reason 6 response. 6 apparently means class2FrameFromNonAuthStation...Client attempted to transfer data before it was authenticated.
Anyone seen anything like this? I've already tried going closer to the router to no avail. I don't remember seeing this any other time I've connected to a open AP, even if that AP is far away. (Signal strength for this AP is good, kismet says its around -57dBm, well above the threshold of -80dBm, and I've tried all the suggestions from the 'Related Questions' code...
I often use VNC to connect to my desktop upstairs using a laptop downstairs over my home network. I tunnel the VNC connection via SSH. The problem I keep running into is that I'll attempt to type a ! or a : or even a captial A and it will come across the wire as a 1, ;, or a respectively. Is this something I can fix? It's really REALLY annoying while one is programming to have to pop open character map and find a colon and copy/paste it in each time. Running Ubuntu 10.04 upstairs, Linux Mint 10 downstairs.
View 1 Replies View Relatedany tips from you guys on how to filter my awk output?I want to exclude last 5 characters using awk in my tcpdump result.I don't want to include ".443:" in my tcpdump using awk.
View 6 Replies View RelatedWe have a list of cyclones in the world. Now i got to check whether or not the second field is more than 1000 mm. If so, than the line has to have a[*] at the end of the line. For exemple:
Australia:1411:55.55:Mackay Cyclone 1918:1918:Mackay
to
Australia:1411:55.55:Mackay Cyclone 1918:1918:Mackay[*]
I also have to use a substitute. So far i've got this but it fails, 6,$s/([0-9])111:1/.* [*]
How many characters does Linux recognize on usernames?
View 2 Replies View RelatedThe input file consists of several fields. The first field is always five or more characters long. I want to keep the last five characters of the first field.
Example:
If the input file record is FEDERAL PACIFIC ELECTRIC PRODUCTS then I want to keep DERAL I can do this in four steps by using C, REV, C, and REV again but that seems like doing an easy thing the hard way. Is there a straightforward way to achieve this result with C or some other command?