General :: Force All Sockets To Close From The Command Line?
Sep 14, 2010How can I force all currently open sockets in linux to close from the command line?
View 2 RepliesHow can I force all currently open sockets in linux to close from the command line?
View 2 RepliesI have a service which I want to run over eth1.
But all my other traffic still needs to run over eth0.
Is it possible to force a command-line tool or other application to use the non default interface?
how to close thunderbird fromterminal? I don't mean to kill the process,I just would like a "clean" exit.I'm asking this because my setup is so that the thrash should be cleared at exit so and the deleted email are deleted from the server. I then set a cron task so that thunderbird is killed but apparently doing so the emails are not deleted from the thrash (whereas they are if I close the application), and I'd like to change the task to close thunderbird rather then kill the process.
View 6 Replies View RelatedI am using Ubuntu 10.04 and installed Wally 2.4.
I have few questions:
1) Currently I run wally with command line by running
Code:
It works, but as soon as I close my terminal, wally terminates. Is there anyway I can make it not terminate?
2) why is that option disabled?
I would like to Close/Open port 21 using command line. I have an FTP server and I don't want to have the port open all the time. I need only two hours by week to be open port 21 from outside to inside.So I need to know the command line for opening and closing the port 21 then I will implement this in a script into cron.hourly.
View 2 Replies View RelatedI have the suspicion that the latest gdm update (2.28.1-0ubuntu2.2) broke something because the login screen isn't displayed anymore on my desktop. My question is the following:How can I revert an update or force a package version via command line? It's pretty straight forward via Synaptic but I only have access to the recovery command line so that is not really an option.
View 1 Replies View RelatedWhen I run "netstat -a" commnand, it display:
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 20269 /tmp/.gdm_socket
...
unix 2 [ ] DGRAM 997161
unix 3 [ ] STREAM CONNECTED 942628 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 942627
unix 3 [ ] STREAM CONNECTED 942626 /tmp/.X11-unix/X0 ....
Why some socket don't have Path name? And what mean's RefCnt = 2?
When I typed netstat -lna, the output:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:580 0.0.0.0:* LISTEN
...
...
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node
unix 2 [ ACC ] STREAM LISTENING 23581
...
...
Can anyone explain to me:
1. What is "Active Internet connections" & "Active UNIX domain sockets"?
2. What is unix Proto?
3. Difference between LISTEN and LISTENING state.
I have a laptop that I wish to keep on even when lid is closed, but I am unable to accomplish this. Does anyone have an idea where to look?
System is Fedora 13 (Rawhide).
gdm-2.29.4-1.fc13.x86_64
gnome-power-manager-2.29.1-2.fc13.x86_64
i know the command to start the x server is "startx" and ctrl alt delete is the keyboard short cut or atleast on slackware, to close X. i wanted to know what the comand is though.
View 5 Replies View RelatedI'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:
$ (something) -l 154 stuff.py
150: def foo(bar):
151: """
[code]....
How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt
View 1 Replies View RelatedI am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files. The problem is that the unzip command asks for confirmation: replace jsp/extension/add-aspect.jsp? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
This is unacceptable for a script.I need an option to force unzip to overwrite the files.I did not find in the man page nor with Google.
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
View 5 Replies View Relatedi am working on a project that uses message queues. i am able to successfully create them and they are working fine. now the problem is to close/remove message queues without software or mq_close / mq_unlink command. earlier when i worked on rh9, there is ipcs utility. we use ipcs to see all the existing message queues and ipcrm to remove them. however ipcs is not working for message queues in RHEL 5.3. Neither ipcs shows the exisiting message queues and neither we are able to use ipcrm. Plz guide to close/remove the queues with ipcs or any other command/utility from shell itself.
View 1 Replies View RelatedI know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
My system:
Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2
I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found
path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found
Can someone point me in the right direction
how do you write the ASCII character #27 in the vim command line?
View 6 Replies View Relatedtrying to install the latest NVIDIA drivers:
I need to disable the X server to install it, which brings me to a blank screen prompting for a login before continuing. it reads thusly:
Ubuntu 9.10 chris-linux
chris-linux login: [i would assume i put in chris here...]
Password:[i type the password i use to login from the normal GUI screen, however i see no indication that im typing anything..]
Login incorrect
Just want to know what OS is, Fedora/RH/... Tried the following on a redhat machine:
uname -o : GNU/Linux
less /proc/version:
Linux version 2.6.18-164.el5 (mockbuild@x86-002.build.bos.redhat.com)
(gcc version 4.1.2 20080704) (Red Hat 4.1.2-46)) #1 SMP Tue Aug 18 15:51:54 EDT 2009
What is the right command to do it?
I can click the "movie player" from the GUI of Ubuntu, but how could I know the corresponding command line cmd. I want to run the movie player from commmand line. And this is not only about the background command for the movie player, I want to know all the actual command that was run by the x-window shell when I click on one of the icon on the menu.
View 10 Replies View RelatedI need to convert thousands of DDS images to PNG format in Linux, preferably in command line. Is there any program available for such task?
View 1 Replies View Related$ ls one.tar.gz
one.tar.gz
$ tar -xvfz one.tar.gz
tar: z: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
$ tar -xvzf one.tar.gz
one
$ tar -xzvf one.tar.gz
one
$ tar -zxvf one.tar.gz
one
$
What command(s) do I type in the terminal to put the computer to sleep?
View 1 Replies View RelatedI installed an older version of gdm and created a new XR1196 directory in /usr/bin and now my computer only boots into command line...
I can get to the GUI using startx, but in doing so I lose all audio output, and the option to shutdown or reboot from both CairoDock and the default panel...
I was trying to learn more about xorg configuration and came through an exercise that should be run at run level 3. So, I wrote init 3 in the command line then the x server stopped and the system was trying to enter run level 3 but then it hangs and nothing happens. At that time I was connected to the system via putty and wrote the command init 5 and the x server started again normally. I tried init 3 again and had the same thing.
View 4 Replies View RelatedHow can I split a line in vim into 2. example :
original line :
welcome to linux questions
after splitting :
welcome to
linux questions
Is there a single key strike through which i can do it ? like going to the word "to" and striking that key will put rest of the words in new line. ( i want to do it in normal mode , not in the usual insert mode where it obviously can be done by typing <Enter> )
I typed in sudo apt-get install ubuntu-desktop and it tells me it's already installed. Good. So it should work. I type sudo/etc/init.d/gdm start and the screen goes blank for 8 seconds three times in a row and then back to the command line. I have also tried gdm start without the path before and it says GDM already running. Aborting! I have 8.10 and it's a valid disk (no errors).
View 14 Replies View RelatedI'm trying to concatenate two command in one line.
Below are the commands:
Code:
I wanted to list all files in /portal/apll/nad/send and grep only .tmp files that contains credit card word.
i'm using ubuntu with the GUIi have a .pps (power point presentation) on the desktop. I installed the powerpoint viewer and made it the default program for opening the file.when i double click on the file everything works.my problem is i need this on a schedule so i downloaded scheduled task.in scheduled task they ask me the command line i want to execute and that's where it doesn't work. I checked the "allow executing file as program" box on the file but i get the error cannot execute binary file.
View 1 Replies View Related