Linux is the family of Unix-like operating systems that use the Linux kernel.

learn more… | top users | synonyms

7
votes
1answer
150 views

How can I mount filesystems with > 4KB block sizes?

I have a 3TB hard disk pulled out of a WD Mybook Live NAS. The partition table is as follows: Model: ATA WDC WD30EZRS-11J (scsi) Disk /dev/sdb: 3001GB Sector size (logical/physical): 512B/4096B ...
1
vote
3answers
77 views

string and number comparsion in bash in test statements?

I am not sure about this comparison i am doing: if [ "$exit_status" -eq 0 ];then #some statements fi is this correct way of comparing numbers or quotes make the variable exit_status a ...
4
votes
0answers
69 views

why . and .. are listed when ls -a command executed? [duplicate]

When I execute the ls -a command, all files and folders in that directory listed, as well as . and .. are listed too. Why is that? Are they a file or folder?
2
votes
1answer
54 views

Is apparmor decreasing the system performance

Is AppArmor decreasing the system performance? Or it doesn't affect it at all. I have a slow system (900mhz cpu) which has AppArmor because it was installed by default I would like to know if it ...
0
votes
1answer
88 views

Multiple option arguments using getopts in bash

I am trying to process command line arguments using getopts in bash. One of the requirements is for the processing of an arbitrary number of option arguments (without the use of quotes). 1st example ...
3
votes
1answer
50 views

How does irqbalance determine which package to use?

irqbalance --debug shows the following: Package 0: Core 0, 2, 4, 6, 8, 10, 12, 14 Package 1: Core 1, 3, 5, 7, 9, 11, 13 When I run network applications, it seems like IRQs are being handled by ...
1
vote
0answers
103 views

How to install precompiled ath9k driver?

I have a Ubuntu and I have cross compiled an ath9k driver for an ARM architecture. The problem is a can't make the install work as I want to work. README says the following: Building for external ...
3
votes
2answers
50 views

How can a user restrict their own group rights without being root?

How can I change my user rights from rwx to r-x at the group level? I'm trying to ensure that I cannot touch any data belonging to other users when I am developing and debugging my scripts. Once I've ...
0
votes
0answers
57 views

Not able to configure Squid3 proxy server on Ubuntu Server 12.04

When I install Squid3, I configure my network on squid.conf as acl localnet src 192.168.1.0/24, then I configure proxy settings in my browser. After that it stops the browsing and a message displays ...
-1
votes
0answers
28 views

Not able to Delink the old tables [closed]

When i tried to delink the old tables i'm getting the following error NOTICE: SELECT COUNT(*) AS count from pg_tables where schemaname='fr' and tablename='check_deny_2013_04_17' CONTEXT: PL/pgSQL ...
1
vote
1answer
59 views

Do kernel counters for jiffies in state exist in Linux?

I am looking to get time/jiffie stats on the state of a daemon process. The states I'm referring to are mentioned in the Linux Kernel Proc Filesystem document. Running, Sleeping, uninterruptible ...
2
votes
0answers
40 views

How to set up remote graphical sessions on CentOs?

Trying to set up a Centos 6 server configuration where we can automate the running of an application that uses Selenium. In this case, ideally, we should be able to: Create a graphical session ...
1
vote
2answers
50 views

Does linux modules/drivers belong to kernal space or user space

Some articles say that modules/drivers belong to kernel space as it take part in forming the kernel; (reference: http://www.freesoftwaremagazine.com/articles/drivers_linux) While others say that ...
1
vote
1answer
58 views

How to access u boot environment from linux?

How can I access and change the u-Boot env variables in linux. Using the u-boot/tools/env directory in u boot directory: u-boot$ make env Which created the executable file fw_printenv. I copied ...
2
votes
2answers
227 views

Why read() is slower than getc()? [closed]

Why is read slower than getc? For example, this: for (;;) { chr++; amr=read(file1, &wc1, 1); amr2=read(file2, &wc2, 1); if (wc1 == wc2) { if ...
0
votes
0answers
19 views

Can I run hostapd in a virtual machine hosted in a windows system?

I would like to know if it is possible to run any linux/unix distribution with hostapd in a virtualized environment. My idea is to host a small virtual machine, which will use my Windows Host ...
2
votes
1answer
47 views

Confirm before exit the command-prompt

I am trying to have a confirmation message every time I type exit command in the command-prompt. To do this, I have tried to use trap in .bashrc file but it seem like trap is not a solution as it run ...
-2
votes
0answers
45 views

getc() convert to syscall read() [closed]

I'm writting utility like cmp in UNIX using system calls. Found source code for Solaris. Started to convert fopen into open, etc. When I almost finished, I found the getc() function and was upset ...
2
votes
2answers
88 views

Measure disk IO latencies of a running process

I'm trying to measure the disk IO latencies of a running process to make a histogram. I could do this with DTrace in operating systems that provide it (e.g. as in this Joyent paper), but my ...
0
votes
0answers
60 views

How do I install Red Hat Linux 9.0 Shrike from a USB drive?

I have a desktop PC which does not have a CD drive and does not have access to the Internet or other networks. I want to install Red Hat Linux 9.0 "Shrike" on it using a 8GB USB flash drive. I have ...
1
vote
0answers
65 views

How to create rootfs for user mode linux on Fedora 18?

I want to create a rootfs to be used with a uml kernel and be able to use the internet. I was using febootstrap with packages: bash, coreutils, net-tools, iputils. After using ...
8
votes
0answers
192 views

how to get exit status from the command before the last [duplicate]

I have solaris machine ( solaris 10 ) please Look on the following simple commands (haconf -makerw | grep -iq "Cluster already writable") # haconf -makerw VCS WARNING V-16-1-10364 Cluster ...
3
votes
1answer
35 views

How to guarantee writes are physically committed before reported completed?

When my system boots, as it probes the external, USB-attached hard drive, I get the message Assuming drive cache: write through in the dmesg output, tagged with the device name of the external drive. ...
0
votes
3answers
145 views

Portable firefox - enable flash plugin

I've installed latest firefox linux-x86_64 from ftp.mozilla.com on a usb device and created a new profile file with the -P command. Unfortunately, the application does not recognize the flash plugin ...
0
votes
1answer
21 views

What is this feature in Linux 'to highlight characters' with QT?

Recently I came across this site. It says, in Linux with QT, it is possible 'to highlight characters' by pressing ShiftCtrl {Left,Right} or Shift {Left,Right}. Could somebody please explain this ...
0
votes
1answer
37 views

ixgbe: increase rx performance

I have an Intel 82598EB 10GBE NIC. I need to receive traffic without packet loss. Data rate is 4-5 Gbps, packet size is 1500-9600 bytes. I had already configured smb and irq affinity. I also tried ...
0
votes
0answers
79 views

3 of 4 USB ports not working on CentOS 6.4

There seems to be a problem with my USB ports on my Lenovo IdeaPad Y580. On Windows 7 all four of them work just fine, but on CentOS 6.4 only one works. I have checked that the devices I used to test ...
3
votes
1answer
67 views

vi[m] read range of lines from another file

On Linux, editing file_B in vim I want to add line 10-25 from file_A. Example: One has a whole set of HTML-Documents with quite the same header and yes, one could create a template and start from ...
0
votes
2answers
145 views

How to detect a possible hardware error?

I'm running Debian Wheezy on a HP Pavilion dv7 laptop and it freezes every now and then, requiring a reboot. One time it didn't even load the operating system, but it wasn't I who was using it so I ...
2
votes
1answer
67 views

What's stopping video cards from being utilized to their full capacity on Linux?

Why do video cards have better quality on Windows? Is there something about Linux that stops video cards from being utilized to their full capacity? What would it take to get the best possible ...
0
votes
0answers
32 views

How to mimic bash tab completion behavior on OS X when using Linux

I'm an OS X user who's used to ssh'ing into various Linux machines. Recently, I installed Ubuntu on one of our servers and have noticed very different tab completion behavior in bash. Among other ...
1
vote
2answers
44 views

What does the -c option of sg do?

What does the -c option of sg do? At least on my machine, the man page fails to explain this option.
0
votes
1answer
49 views

RedHat / CentOS 5.5 background process has restricted memory

I run Fisheye that uses Java for Linux. Settings go like this: generate options FISHEYE_OPTS=`$JAVACMD -Xms100m -Xmx200m -cp $FISHEYE_HOME/fisheyeboot.jar com.cenqua.fisheye.boot.OptsSetter` build ...
4
votes
1answer
280 views

How many users does Linux support being logged in at the same time via SSH?

I know Linux supports multiple users being logged in at the same time. But what's the maximum number of users that can be logged into Linux at the same time? I see there are there are 69 tty files ...
0
votes
2answers
83 views

What module for network card Intel Corporation Device 1521?

I'm installing a new server and I'm not able to figure out what module should I load to make its on-board network card work. Calling lspci prints: Ethernet controller: Intel Corporation Device 1521 ...
0
votes
0answers
15 views

PID Grabbing Via LSM Hooks

I am grabbing the LSM hooks in my own created module and showing into the securityfs psuedo filesystem which is showing correctly. The path where these hooks are showing is ...
0
votes
4answers
58 views

concatenating multiple files with multiple headers

Im trying to concatenate multiple files with multiple headers to have one file with all the information in it for example. File 1: Numbers 1 2 3 Letters A B C File 2: Numbers 4 5 6 Letters D E ...
10
votes
1answer
426 views

Why don't Linux terminal emulators support full colors?

I just upgraded my gnome-terminal to use 256 colors, yet I am a bit puzzled on the reason why a terminal emulator can't support the full palette any modern desktop environment provides. I guess ...
5
votes
2answers
225 views

How does cat know the baud rate of the serial port?

I regularly use cat to view debugging information in the console from my FPGA development board over the serial connection, but I never have had to tell linux what the baud rate is. How does cat know ...
0
votes
2answers
68 views

Add new user with permissions same as existing user

How to create a new user with permission exactly same as an existing user in linux.
1
vote
0answers
42 views

How to specify which interface an application uses?

Imagine this example: you have direct access to the internet on eth0, and you have a VPN on tun0. You want one application to access the internet directly through eth0 (using X public IP address) and ...
0
votes
0answers
18 views

Backup Creation failure

When I try to make backup through the backup tool in Linux Mint 14 (Nadia), it shows the following message in the form of dialog box: Backup failed. Permission denied when trying to create ...
0
votes
1answer
28 views

How to remove Oracle Wallet using orapki?

Hi i'm on Centos using oracle 11g And i've created a wallet using : $ orapki wallet create -wallet /u01/app/oracle/admin/DB11G/wallet -pwd WalletPasswd123 -auto_login Now i want to remove it to ...
0
votes
0answers
13 views

LSB 1.2 vs LSB 4.1: what's their respective status?

I knew about LSB 1.2 since some time, until I landed to an LSB 4.1 page. Linux Standard Base Core Specification 4.1 (2010). Linux Standard Base Specification 1.2 (2002). I could just think the ...
1
vote
1answer
38 views

Effect if any of changing LD_LIBRARY_PATH environnment variable on emacs fonts?

The rendering of my emacs fonts changes if I define a specific list of directories under the LD_LIBRARY_PATH environment variable just before I call emacs. I changed this because I wanted to use emacs ...
3
votes
1answer
92 views

Output of `java -version` not matched by grep or awk

On my Linux machine, it isn't clear to me why if I do the following then I don't get only the version string ("1.5.0_32"). # java -version | grep version | awk '{print $NF}' java version "1.5.0_32" ...
0
votes
2answers
85 views

How to get GPU acceleration working for my old PC?

I am using an old PC Pentium4 2.4Ghz with nVidia GS 7900 AGP 256MB and I would like to support the video play from GPU. As far what I have read, the support for vdpau has come for nVidida 8 series. ...
0
votes
3answers
99 views

libxml2.so.2: cannot open shared object file: No such file or directory

I am using CentOS in which i had removed libxml2 accidentally now it was showing the following error as follows: There was a problem importing one of the Python modules required to run yum. The ...
8
votes
2answers
248 views

A hidden process, what it is?

[root@datacenteronline ~]# ssh root@192.168.1.172 Last login: Wed Apr 17 09:55:45 2013 from 192.168.1.187 [root@localhost ~]# ls /proc/ | grep 2266 [root@localhost ~]# cd /proc/2266 [root@localhost ...
1
vote
1answer
33 views

Looking for /procfs documentation, describing values and units of measurement

Surprisingly, comprehensive documentation for /procfs is hard to find. For my specific question, I am looking at: cat /proc/1/statm (let's use pid=1 because it seems to be always there). I just ran ...

1 3 4 5 6 7 87