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

1
vote
1answer
721 views

Does Linux save the history of executed commands

I know we can do a "history" command or use control+R to find the command history in a particular shell session. But is there a way to find out the command history of my last ssh session for example? ...
4
votes
4answers
13k views

How to get the number of physical disks in Linux?

What is the command line command to get the number of physical disks in Linux Server and how much space is used on each?
1
vote
0answers
196 views

eth0 always has 192.168.1.1 and ignored a network with a DHCP server

Rarely my network interface (eth0) always has: $ ifconfig eth0 eth0 Link encap:Ethernet HWaddr aa:00:04:00:0a:04 inet addr:10.100.1.198 Bcast:10.100.1.255 ...
1
vote
3answers
1k views

Recovering data from RAID1 drive

I have recently received one of the two 1TB drives I had on a dedicated server. The drives were mirrored and the server was running CentOS 5.6. I've installed it in an USB enclosure and tried ...
1
vote
2answers
160 views

Is it secure: Storing an unencrypted keyfile in a volatile location?

I have multiple hard drives that should all be encrypted with the same keyfile or passphrase. Here's what I planned as an approach: I encrypt every hard disk with LUKS / cryptsetup and choose a ...
4
votes
1answer
3k views

Why is “nc -l xxxx” not opening a port?

I'm trying to get netcat to listen on port 4444, but it doesn't seem to be working. I am checking to see if the port is open using nmap, but it doesn't pick it up and I can't figure out why. I have ...
0
votes
3answers
945 views

For unix screen terminal how to increase log?

The output of my program being too long, on running it in screen terminal some part of output gets truncated. To avoid this how can I increase log limit of screen terminal? Any ideas??
2
votes
3answers
102 views

using vims pattern-multi-items {n} to match the 5th space in a line

With this entry from our crontab 1 3 1 * * find /var/log/tomcat/* -mtime +61 -type f -delete I want to match the 5th space char so I can separate the command part from the time field part. Cron ...
1
vote
2answers
460 views

is there an 'upwards' find?

I found I asked this question on the wrong stackexchange site. To find files starting from a certain path, I can use find <path> .... If I want to find 'upwards', i.e. in the parent directory, ...
2
votes
1answer
644 views

My Ubuntu laptop swap cache to disk freeze my system

My laptop is Thinkpad x220, 4G ram, harddisk is 7200rpm, installed with Ubuntu 12.04, using Unity desktop. When I open eclipse and chrome, they eat about 2G memory. Here is the free -m result: ...
1
vote
3answers
2k views

find command behaviour when matching names without quotes

I was looking for differences in the find command with double quotes and without quotes. I found something odd. I have two files: xWrapper.java YWrapper.java and some in the pattern ...
1
vote
3answers
459 views

Will multicore allow the same CPU usage as multi CPU [duplicate]

Possible Duplicate: Multi-core CPU: can I say I have a 3x2.1GHz=6.3GHz CPU? I plan to buy latop with with i5-2410M processor that have 2 cores (according to spec it can also have 4 ...
0
votes
1answer
216 views

How to define a Compose Key in terminal (no desktop environment)?

I would like to define a compose key on my system (it's a Debian Sid "Wheezy"). I have no Xorg (and don't want any desktop environment). Only in terminal. I would like to set it up on my Alt-Gr key ...
4
votes
2answers
4k views

How to mount removable media in /media/<LABEL> automatically when inserted, without any desktop environment?

I have a Debian sid system (Wheezy) (and same question for arch as well), without any desktop environment (and no Xorg at all). I can mount my SD-cards, USB sticks, external HDD manually with mount / ...
2
votes
1answer
931 views

Oracle VM VirtualBox Static IP - Fedora

I created a Virtual Machine (Linux Fedora) using Oracle VM VirtualBox . The ip address changes every now and then. I want to make it static in the VM. Update : I was able to setup a static ip address ...
0
votes
1answer
369 views

Dual booting Windows 7 and Linux: Sharing home directory

What I would like to do is move away from using VMs for running linux inside a Windows 7 host to a dual-boot setup. I know there are ways of mounting ext based partitions from windows and NTFS ...
0
votes
2answers
397 views

Boot Read Only Debian With Some Exceptions

I have an embedded system booting Debian off from a CF card. To minimize the potential for unrecoverable corruption when non-graceful shutdowns occur, I can boot the filesystem readonly by configuring ...
3
votes
1answer
742 views

Do I have to chmod after ln -s?

After I create a symlink with 'ln -s' (in Ubuntu 12.04, as root), it seems to be created with 777 permissions. Is that normal? Should I always do 'chmod 644' after doing 'ln -s'?
0
votes
1answer
69 views

Are there example pages similar to man pages?

man find opens up the man page for find in my pager. Is there something like example find that would print find /usr/lib -name "stdint.h"
2
votes
0answers
2k views

Need help mounting device : mount -t ntfs-3g mount failed: No such device

I'm using ophcrack-vista-livecd-3.4.0.iso on Windows 7 to recover a password. When I tried using the software, I got a message saying "Tables Found" along with another message saying "No partition ...
1
vote
2answers
600 views

Can Synergy be cross-compiled on an ARM platform?

I am trying to compile a Synergy client so I can use it in a WindRiver Linux environment. I've tried compiling and I keep getting this error: CMake Error at CMakeLists.txt:195 (message): Missing ...
3
votes
1answer
4k views

Why does gtk-gnash eat CPU resources at 90%+?

I use Iceweasel with Debian Squeeze. When I browse some websites, e.g. http://www.dedoimedo.com, it sometimes happens that the gtk-gnash program uses more than 90% of my CPU resources. When I close ...
2
votes
1answer
1k views

portmap on debian, can I safely remove it?

I'm running 3 http server with nothing fancy on them. it's just apache with a shared directory via SSHFS, looking at the usage of RAM I can see that portmap is using quite a bit of RAM/CPU and I have ...
2
votes
1answer
2k views

Under linux, how do I find out if some specific thread is run with real-time priority?

I have a process (jackd) that runs several threads. One of the threads it runs should be in realtime, the others run on normal priorities. I'd like to check if it actually runs on realtime. What ...
1
vote
1answer
3k views

How can I list Ubuntu disks by a unique identifier?

I am running Ubuntu 12.04 LTS inside a VM running on VMware Workstation 8.0.4. When I try to view the disks attached to the machine by their ID nothing shows up but the CD-ROM drive. I listing the ...
1
vote
1answer
71 views

Generating colon seperated path list using find

I am trying to generate some PATH-like directory list, using simple bash- and UNIX commands. I think this one here gives me the output I like to use: $ find /usr/local -type d -exec dirname \{\} \; | ...
3
votes
0answers
243 views

Export Power Point presentations to flash with control buttons on Linux

I need to export *.pps, *.ppt, *.ppsx, and *.pptx files to .swf files. On Windows I used iSpring for Power Point, and worked well. This is the result of iSpring: I am searching for an ...
4
votes
2answers
322 views

How to interpret CPU load average?

When I use command mpstat, I see an idle value, for example 25%. It means 75% of CPU power is used. If there are 4 cores on CPU, then does 25% idle mean that 3 cores are fully used and 1 core is not ...
1
vote
1answer
2k views

MySQL ERROR 2002 (HY000) on CentOS 5

I have problem with starting up mysql. When I type service mysql start All I got is ERROR 2002 (HY000): Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock' (2)** ...
1
vote
2answers
923 views

How to redirect script output to a text file and continue despite log-out

What is the difference between: nohup bin/admin/release.sh > /users/john/release_output 2>&1 & and bin/admin/release.sh > /users/john/release_output & I want to run ...
0
votes
2answers
394 views

Telnet and system root password can differ?

I am just curious of this, so: if I change my "root" password using passwd, does this by default change my telnet and ftp password? Also, is it possible to change telnet and ftp "root" account ...
1
vote
1answer
953 views

CUPS : Creating a dummy printer directing to dev/null

I used following command , is there anything wrong with it ? lpadmin -p lp0 -E -v /dev/null -m raw
2
votes
1answer
117 views

can sed remove every line that contains 'foo'?

I read somewhere that: sed -n -e '/foo/d' myinputfile.txt would remove all occurences of 'foo' from myinputfile.txt. However this does not seem to work for me. I am a sed noob and cannot seem to ...
3
votes
1answer
342 views

Accidentally ran “sudo gpart -W /dev/sda /dev/sda” – how can I recover my partitions?

I was trying to repair a damaged MicroSD card located on /dev/sdb, however I accidentally ran the gpart tool on /dev/sda instead. (not gparted, but gpart) I ended up writing one partition and so now ...
1
vote
2answers
2k views

Restoring a VirtualBox VM to a clean/default state?

I am playing around with Virtual Box and installed an Ubuntu 12.04 ISO on a my first VM. Now I want to "wipe" that VM clean and undo all the software I had installed on it. My co-worker said the ...
1
vote
0answers
159 views

Linux Mint gets stuck when using wireless card “rt73usb”

I'm changing Linux distributions a lot, wishing to resolve my problems with the wireless card identified as rt73usb, like explained in this question of mine. Now I'm using Linux Mint 12. I noticed ...
4
votes
2answers
1k views

How do I see the CPU load of a server?

What is the command to see CPU load of a RedHat Linux server?
1
vote
1answer
416 views

How to burn a DVD from within GParted Live CD?

I made the mistaking of using GParted to repartition my hard drive before making sure I have an OS reinstall disk ready. I have the iso somewhere in the hard drive. How can I burn a DVD from this ...
1
vote
2answers
155 views

vim (gvim) marking occurrences on the vertical bar?

When I search for a string, vim(gvim) highlights all the occurrences, which is great. But is there a way to show the occurrences with markers on the vertical bar on the right hand side, so if I click ...
0
votes
2answers
487 views

Daemon <||> Process control differences

With respect to this excellent post: http://stackoverflow.com/questions/958249/whats-the-difference-between-nohup-and-a-daemon I would like to ask the following: After launching an application from ...
2
votes
1answer
405 views

Linux terminal emulator with custom line height and character spacing?

I'm looking for a Linux terminal emulator which has similar features to OS X's Terminal.app in terms of being able to customise line height and character spacing. Could anyone point me in the right ...
6
votes
2answers
6k views

How can I do a recursive chmod only on directories?

I want to change permissions on a tree on Centos 4 to add execute permissions for all directories recursively from a directory. If I use normal chmod, files other than directories are also modified: ...
2
votes
1answer
54 views

is it possible to trim a video file in linux without creating a copy and while watching video file

I realize this is a tall order and may not be possible yet. I would like to be able to trim off the watched portion of the video file on long video files (such as the olympics) to save disk space. I ...
0
votes
0answers
405 views

Setting the primary graphics adapter / screen for Kernel Mode Setting

I'm having trouble with my graphics setup under linux. My system has two GPUs, one onboard and a dedicated card. It's one of those AMD Liano (?) Systems, with an "APU" (Processor incl. GPU). The ...
2
votes
3answers
4k views

Understanding Processor Frequency part of cat /proc/cpuinfo

I was looking at my processor SPECS on my Ubuntu Linux 11.10 system. Here is the end of the output of the command cat /proc/cpuinfo: processor : 3 vendor_id : GenuineIntel cpu family : 6 model ...
2
votes
1answer
270 views

When I create files the owner / group is always root

On Linux, I am logged in as another user, I have added myself to wheel. wheel:x:10:root,allan I have uncommented the lines of /etc/sudoers ## Allow root to run any commands anywhere root ...
0
votes
1answer
82 views

zypper always install devel packages

Is there an option to force zypper to always install the ${PKG}-devel packages to the packages I install via zypper in $PKG, maybe in a config or cmd? I did not see any but would love to be able to ...
1
vote
1answer
81 views

initrd.img creation in installation cd

as you know, in Linux environments initrd is different for each hardware platform, for example in vm and actual hardware. for create initrd, must use mkinitrd command. but in installation cd ...
2
votes
2answers
251 views

How to do a proper Linux server backup to store apps installed and configurations?

I am familiar with using rsync for backups on Linux. However, in the event of a hard disk crash, I have been repeatedly told that with a new disk, install a latest version of the OS, then the data ...
1
vote
0answers
250 views

Ubuntu 12 Headless Monitor on D2700 Board

I'm trying to set up a home web server running Ubuntu 12 LTS (Desktop). The server itself boots and runs fine and i'm using a vnc to connect to the server via another desktop. The issue I have is ...