All Questions

Filter by
Sorted by
Tagged with
75
votes
8answers
451k views

Connecting to wifi network through command line

I am trying to connect to my WEP network just using the command-line (Linux). I run: sudo iwconfig wlan0 mode Managed essid 'my_network' key 'xx:xx:... hex key, 26 digits' Then I try to obtain an ...
7
votes
4answers
8k views

All commands that should be used to connect to wifi in command line

I would like to switch from gnome to awesome and I would like to connect my wifi network in command line (instead of using gnome tools). So, I searched on the internet and found approximatively the ...
19
votes
8answers
84k views

How to use ifconfig to show active interface only

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below. en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST&...
29
votes
4answers
215k views

How to bring up a wi-fi interface from a command line?

I can't figure out how to properly bring up the wi-fi card on my laptop. When I turn it on and issue $ sudo iwconfig wlan0 txpower auto $ sudo iwlist wlan0 scan wlan0 Interface doesn't support ...
5
votes
1answer
2k views

How can I control an existing remote shell?

On my remote machine, an xterm/shell has been created (by another process). I have full access to that shell through VNC. But really I would like to be using a text mode shell on my local machine. ...
64
votes
2answers
302k views

Sending messages to another user

Is there any command to send messages through the Linux shell to other people on the same network? I'm using write user and then write the message itself. But there's any command that doesn't show my ...
6
votes
2answers
15k views

How to check programmatically if the Ethernet cable is plugged in?

As you know, in Windows when we plug in the network cable, the network symbol will change to another status. How can I know whether the cable is plugged in or not via the command prompt in Linux?
5
votes
2answers
17k views

No network connection in CentOS 6.3 Minimal under VMWare Player

I'm trying to replicate in VMWare Player the exact same conditions I have under my Dedicated Server for testing purposes. Now, the thing is that that when I try to install something, or ping http://...
3
votes
1answer
10k views

Connecting to network with terminal

I have a router at home with ESSID of dlink_home and 10 digits (0123456789) 64-bit WEP encryption of Open Authentication Type. I want to connect to it through terminal with bash commands, I tried ...
3
votes
2answers
828 views

Bandwidth monitoring in Linux

I just need to get how much bandwidth is used in 3 or 4 days. Do you have any application in the terminal to do it? I'd prefer if it didn't use SNMP. I found iptraf, wireshark, cacti, but they were ...
2
votes
2answers
6k views

How to keep overwriting the contents of a file instead of appending to it

How do I clear the contents of a file before writing to it? For example: echo one > filename.tmp # filename.tmp now contains "one" echo two > filename.tmp # filename.tmp should now contain "...