Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

0
votes
1answer
6 views

What are the methods available to get the CPU usage in Linux Command line?

We know that #top is command to get the CPU usage in Linux and other ways include cat /proc/stat which is used by top. What are the other method to get the CPU usage in Linux command line?
1
vote
2answers
2k views

Mount NFS as remote user

I have debian as an NFS client. I would like to mount a remote NFS with a specific user permissions (to specify the remote user account) How can I do that?
0
votes
4answers
113 views

How to combine find and grep to recursively search for str or str2 in *.html and *.php files from /home/smith/sourcecode?

How can i combine find and grep to search for str1 or str2, recursively, in all *.html and *.php files starting from a directory named /home/smith/source? The output only needs to list files (with ...
2
votes
3answers
45 views

Use xargs to send requests to the same server in parallel with netcat

I am trying to devise a one-liner to send text to a simple echo server - but multiple connections in parallel. This is what I'm trying: echo -e A,B,C,D | xargs -d, -i -P 4 echo {} | nc localhost ...
0
votes
1answer
7 views

Samba permissions on windows

I have a folder shared by Samba and mounted on Windows. If I lock files in Linux I don't want Windows users to modify those. And If windows user will create a file/folder, in Linux I should be able to ...
2
votes
1answer
14 views

How much of a difference is my squid cache making?

I'm on an ADSL connection that has a bandwidth limit (I can download 100 gig per month). For a bit of a test I set up Squid as a transparent web proxy to capture all HTTP traffic and attempt to cache ...
5
votes
3answers
232 views

Copy Files over unstable connection

I need to copy a large number of files to a hard disk drive over USB, but the connection to the drive will randomly fail, causing the drive to appear as though it is unplugged and immediately plugged ...
0
votes
0answers
6 views

Overheating iMac(2008) with kubuntu 12.04

I have an 24 inch iMac from 2008 and I installed Kubuntu 12.04 on it. The problem is: if I' m running and CPU-hungry program(Android Emulator, Virtual Box), the CPU goes to 80C. Also the screen is ...
0
votes
2answers
20 views

“Missing Operating System” GRUB

Okay ill keep it quick, I screwed up when formatting my harddrive so now I have this issue "missing operating system GRUB" when trying to boot And if I try to boot from a live CD or USB I just get ...
1
vote
0answers
23 views

How to find out if a device is currently is use?

In an effort to create a Linux installation script, I'd like to check if /dev/sda is currently in use by the Kernel, and exit if so. I guess this means finding out what partitions are associated to ...
58
votes
6answers
2k views

How can I create a file with a specific size from a command line?

How can I create a file (e.g. using the touch command or another similar way), but with a specific size (e.g. 14 MB)? The use case is to test FTP with various file sizes. If we can create a file with ...
0
votes
0answers
10 views

chroot SFTP User can't modify any files in mounted drive

Well here are the steps i've done, the problem is listed at the bottom. sudo mkdir /home/test sudo useradd test sudo chown root:test /home/test sudo chmod 755 /home/test sudo groupadd testgroup sudo ...
1
vote
0answers
11 views

Matching bracket selection on gnome-terminal, like Mac OSX terminal

I have recently fallen for a (non obvious) feature of the Mac OSX terminal: Given a display of some kind of deeply nested text with lots of matching brackets, parenthesis, or quotes (ie. JSON), the ...
0
votes
0answers
29 views

Directory /ETC has been moved! — Ubuntu 13.04 [duplicate]

I made a bad move by moving my /etc directory to Dropbox in hopes to sync two computer enviroments. After moving the /etc directory any sudo commands responded with "Who is this UID 1000?". Basically ...
0
votes
3answers
28 views

Directory /ETC has been moved! — Ubuntu 13.04

I made a bad move by moving my /etc directory to Dropbox in hopes to sync two computer enviroments. After moving the /etc directory any sudo commands responded with "Who is this UID 1000?". Basically ...
0
votes
1answer
26 views

Linux and Windows File System?

Okay, I've somehow convinced myself to install Mint Linux (15: Olivia) beside my lovely Windows 8 operating system. Now, the only problem I have is sharing files between the two Operating Systems. ...
0
votes
0answers
12 views

Linux Web Server Permissions - Write But Not View/Modify/Delete

I have a Joomla website with Chronoforms installed. I have created a contact form with it which includes a File Upload. For security reasons i cant have anyone viewing the files/folder. But obviously ...
1
vote
1answer
18 views

Manually configuring DNS server - raspbian

I have written a simple script to allow a user to manually config their IP address and DNS server. The DNS servers are changed by creating a new /etc/resolv.conf file with the lines the user has ...
2
votes
1answer
774 views

Epson receipt printer slow on Linux

I am trying to set up a POS station for web-based software. The receipt printer, an Epson TM-T88V, is slow using Epson's own drivers and prescribed installation method. To clarify, it is slower than ...
2
votes
1answer
189 views

USB mass storage device split to 2 devices

When I connect an Hitachi Deskstar 7K4000 4TB hard drive in a Fantec DB-ALUE2e external SATA enclosure to a Lenovo T400 laptop using the USB 2.0 port, the hard drive gets split to 2 devices: [ ...
0
votes
0answers
10 views

How to make a connection between linux machine to microsoft sql server

I wanted to make a connection to my microsoft sql server 2008 from RHEL 5 32 bit.I was not able to find odbc drivers for the same.
10
votes
9answers
37k views

How can I automatically copy files to a USB drive when I connect it to my computer?

I am looking for a solution for copying all the files from a specific directory on the hard drive, to a specific directory on a USB memory device, once this device is connected. I have a program that ...
0
votes
1answer
17 views

Chroot from android into environment as user

I'm trying to use my android tablet as a dev environment. So far I have created an Arch and Ubuntu img. I can chroot into both just fine and I have created a user using adduser, but I do not know how ...
0
votes
0answers
6 views

Setting mutt mimetype to handle multiple options

I've configured .mailcap for mutt to handle mimetypes of attachments individually, with different 'viewers' over the years which works well, however mailcap can handle only one application per type. ...
4
votes
4answers
870 views

Launch files / directories using Gnome from command line

On Windows, I can launch an Explorer window from a command line via "start (dirname)". And this will also launch applications associated with a particular file extension, so I can do "start ...
0
votes
0answers
5 views

How to install particular version (not latest) of software via YUM?

I recently installed CentOS 6.3 on a VPS. The version on PHP that comes with CentOS is 5.3.3, which is not the final, stable PHP 5.3 version. The final version was 5.3.26. Using the default yum ...
0
votes
1answer
11 views

Redirecting User to Folder Within Apache on Linux

I want the user to access http://www.xyz/internal/, then I need authentication and based on the user I will then send them to a subdirectory. So the scenario is, if user TOM goes to .../internal/ I ...
1
vote
0answers
17 views

Kernel panic after labeling partition

I wanted to relabel my Windows partition to automount on boot. I used GParted, everything went OK but rendered my system unbootable. Now it says Kernel Panic, VFS something on (0,0) (I really don't ...
11
votes
7answers
10k views

Remove a certain line from Bash history file

How can I remove a certain line from history's database?
3
votes
3answers
4k views

Hard Reset USB in Ubuntu 10.04

I have a USB device (a modem) that is really finicky. Sometimes it works fine, but other times it refuses to connect. The only solution I have found to fix it once it gets into a bad state is to ...
0
votes
1answer
3k views

How to mount a Windows share in OpenDreambox via Telnet?

I have created a new folder on root of C disk called recordings and I have shared it with everyone. I now want to mount this folder on my Dreambox so that I can record to it. But since this is an ...
1
vote
0answers
9 views

Cinelerra: how do I add comments to media clips (resources window)?

I have imported some clips, which are named MOV001, MOV002, etc. If I switch the Resources window view mode to "text", I can see there are two columns: Title and Comments. I can't figure out how to ...
0
votes
2answers
1k views

Archlinux/atheros WLAN configuration troubles

I'm trying to config archlinux to use my wireless network adapter. It's quite troublesome. From what I've gathered, it's an atheros network adapter, using the ath5k driver/module... I can't get it to ...
1
vote
2answers
81 views
+50

Merging partitions - Help for recovery

I have a 1TB external HDD. There were two partitions on this HDD. My first partition was a 60 GB partition and the second partition was a 871 GB partition. I did not need the data on the first ...
0
votes
2answers
14 views

Ubuntu 12.04 Permission denied (publickey,gssapi-with-mic)

I was cloning a github repository. I copied my id_rsa key from another pc to my /home/me/.ssh/ however this error shows up Permission denied (publickey,gssapi-with-mic). how would I solve this ...
0
votes
1answer
22 views

slow sftp, starts fast, stalls after 10 sec

On a 32 bit Ubuntu machine (12.04), I have a speed problem transfering files (~100MB) with sftp (command-line), from my machine to a server, on a ethernet 100Mb/s network. The transfer starts at ...
1
vote
1answer
22 views

Lossless conversion of PDF to DJVU

I search a way for lossless, reliable and also compressed conversion of pdf files, which contain black and white text scans, to the djvu format. The tool must be a commandline program so I can atomize ...
2
votes
2answers
3k views

TCP Slow start and congestion control, and how to modify them

I'm trying to change the behavior of the tcp slow start protocol on a CentOS5 box (uname -r => 2.6.18-238.12.1.el5). I have read that the following command will change my icwnd to 8: ip route change ...
-1
votes
0answers
11 views

Why does the memory usage in “top” not add up? [duplicate]

I have been using top command to monitor Linux memory usage. I understand that the "used" field in "Mem" reflects the total amount of RAM being used, including that by processes, file buffers and ...
3
votes
1answer
32 views

Using su with commands

Ubuntu Server 12.04 On a remote server that I ssh into I have set up a special user with: sudo adduser --system --disabled-login --disabled-password --group suser to run some maintenance functions. ...
0
votes
0answers
4 views

Universal Compiz changes Ubuntu 13

Can I make universal compiz changes in Ubuntu? I am using XRDP to allow others to remote desktop into my server. As usual I have run into the d keybinding issue. I am aware i can use ccsm to change ...
0
votes
1answer
68 views

Where is my /boot/grub/menu.lst file

I m using VMware for my linux version Ubuntu 11.04 and i have searched for /boot/grub/menu.lst file but this file was not there. Why?? I was creating a new kernel in virtual linux but unable to ...
11
votes
6answers
8k views

How can I change the amount and size of Linux ramdisks (/dev/ram0 - /dev/ram15)?

Using Linux, when I boot I automatically have 16 16MB ramdisks, however, I would like to create one really large ramdisk to test some software. I found that I can adjust the size of the ramdisks ...
4
votes
2answers
1k views

Running OLEDB VB6 Windows Progam Under Wine

I'm trying to install a VB6 Windows program that uses OLEDB to access VFP tables to run under Wine 1.0.1 on Ubuntu 9.10. Wine is configured to Windows version Windows XP. The program install ran okay, ...
0
votes
3answers
27 views

my perl scripts that use Net:Pcap dont work when i port them onto a vm on my server

I am trying to run a perl script that i have scripted to dump the packets from my network, i am using the Net:Pcap and netpacket modules. They are working fine on my and my friend's laptop. but when ...
0
votes
1answer
26 views

Dozens of spontaneous reboots

I am working on a SUSE Linux based system that runs 24/7 and has done so for around 3 years although I cannot say that it has not been rebooted in that time. At 9th June there apparently was some sort ...
14
votes
3answers
385 views

Have a file named ~ (tilde) in my home-directory (Linux)

I just noticed that I have a file called ~ in my ~-directory. $ ls -la ~ ... -rw-r----- 1 x1 x1 733962240 Mar 1 17:55 ~ ... Any idea how I can mv or rm it?
0
votes
1answer
18 views

Writing to a specific drive with software RAID4 on Linux

Edited to reflect conclusions from comments: I want to construct a software RAID-like array with 2 storage devices plus one parity device, where the parity device maintains the XOR of the two other ...
0
votes
0answers
10 views

Route dns+dhcp requests through iptables?

I have a Raspberry Pi which I'm attempting to use as a range extender for my home wifi network. I've installed and setup hostapd with the same settings as my router, so that any devices will select ...
1
vote
2answers
11 views

linux COM port write and read

I have a COM port connected to my Linux host, namely /dev/ttySx, how can I simply write and read some data from this COM port in shell, like use echo and cat command?

1 2 3 4 5 375