A family of Unix-like 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

21
votes
3answers
54k views

Which command in the Linux/UNIX sh shell returns my current directory?

Using the sh shell (not bash), which command in Linux/UNIX prints out my current directory? $ *showmewhereiam* /sys/kernel/debug $
1
vote
1answer
417 views

How to add big file to linux livecd

I have a linux live-cd linux.iso(600Mb), two files foo.sh(1Kb) and foo.img(1.3 Gb). How to add files to live-cd and create live-dvd?
7
votes
3answers
14k views

How can I find out processes are using swap space?

I have a linux server top reports about 9GB of swap used: But I cannot figure where's it use swap, some google results said that top - O commad follow by p will show swap usage by process. But as ...
46
votes
5answers
45k views

How can I recursively copy files by file extension, preserving directory structure?

At the Linux command line, I'd like to copy a (very large) set of .txt files from one directory (and its subdirectories) to another. I need the directory structure to stay intact, and I need to ...
21
votes
4answers
22k views

Clear terminal using keyboard shortcut

I was curious if there is a way to clear the terminal buffer/output through some keyboard shortcut. I am using Ubuntu. I am aware that Ctrl + L clears the terminal, but you can still scroll back to ...
6
votes
7answers
532 views

Can I shorten my directory commands in Ubuntu?

When working on a rails app I like to open all of my files through the command line like so CD my_app gedit app/views/user/show.HTML.erb Is there a way that I could shorten this so that I could ...
1
vote
2answers
150 views

Attaching some code to session start and end in Linux

I'm trying to execute some code (let's call it login.java) when I log in and out of my linux machine. Is there any way to do this? I'm looking for perhaps a way to trigger the code? I've thought of ...
0
votes
2answers
923 views

How to make VLC act as a Kiosk

I'm thinking of using VLC in a Kiosk type application I'm designing, and I have a couple questions. I need VLC to start in fullscreen mode (easily done) but not allow the users to open new files or ...
9
votes
5answers
8k views

How to find out from which folder a process is running?

In *nix you can use ps to see which process are running. But if an executable has multiple homonimous files in a device, we can't figure where it was invoked from. This is slightly different from my ...
2
votes
4answers
381 views

List of groups a user is a part of

In Linux, how do I get a list of all the groups a particular user is a member of?
3
votes
4answers
445 views

How to find directory with most writes and/or turnaround (write and delete)

is there a way under linux to find out directory with frequent writes and/or deletes? I'm using Ubuntu and recently bought SSD. I moved /tmp to ramdisk and did some other tweaks to avoid wear. But I ...
1
vote
3answers
199 views

How \ why does echo $'\ec' work? What is it doing to clear the terminal?

On the terminal prompt for OS X I can type in echo $'\ec' and ti will clear the console. I have no idea why this works, though. What is it doing? I'm guessing this would work on other versions of ...
8
votes
4answers
2k views

What is a hard link in Linux?

I have searched around and am trying to understand the difference between a hard link and symbolic link (soft link). I found this link is quite useful. But I am still not very clear. I understand ...
1
vote
2answers
1k views

Linux: Compressing all .pdf files recursively (.tar)

At the linux command line, I'd like to compress all .pdf files in a directory, any of it's subdirectories and so on - but only .pdf files. I'm struggling to figure out the syntax, any ideas ...
4
votes
5answers
514 views

Prevent vim from clearing the clipboard on exit

If I copy text into the xterm clipboard from vim, it is cleared when I exit vim. How do I prevent this?
0
votes
1answer
535 views

How do I pass a list of packages to aptitude and resolve conflicts?

How do I pass a list of packages to aptitude so that I can resolve the conflicts interactively?
6
votes
2answers
321 views

Why do some packages require their own user to run?

Why in SVN, Apache, and many other programs, does the admin have to create a new user just for the server to use?
3
votes
1answer
3k views

What's the difference between sudo su - and sudo -i?

It is my understanding that they do the same: they ask for my password (if I am allowed in /etc/sudoers), and give me a login shell as root. Is there any difference between them? sudo su - sudo -i ...
3
votes
3answers
932 views

Vanishing mount points on unmount

When I insert an SD card in the reader, slackware creates a mount point and mounts my card volumes. On unmounting the volumes, the mount point vanishes. How do I achieve this manually? When I ...
2
votes
1answer
1k views

Wget Pattern Problem

I am having a problem with wget and accept patterns. What I want to do is only download files which match the pattern \*/images/src/test\*.jpg. I am using the command wget -r -A ...
0
votes
1answer
119 views

Gnome and Debian are too large for my original iBook. What distro/gui should I use?

The machine I'm using has a PowerPC architecture so I'm somewhat limited to what flavors of Linux I can use and I don't want to go back to Mac OS 8.9. The HD is only 3.3 GB so I can't get both Debian ...
7
votes
6answers
17k views

What is different between root and sudo?

A root user can have all the privileges. But a normal user can gain access like a root with su or sudo command and their own password. So what's the difference?
3
votes
1answer
628 views

Where are the Linux paste buffers managed

On standard Linux setups you have two general paste buffers, the main copy(^C)/paste(^V) one and the select-text/middle-click one. For both of these buffers: At what level in the environment are ...
2
votes
3answers
4k views

How can I change the creation time of all a folder's files to the current time?

Under a Linux shell, how can I change the creation time of all a folder's files to the current time?
1
vote
1answer
576 views

Change the order of all boot entries in GRUB2, not just the first

It's quite easy to change the default boot entry through etc/default/grub. However, this only allows for the first entry to be changed. I want to be able to move all the entries in any order I like. ...
39
votes
2answers
53k views

Can I create an SSH user which can access only certain directory?

I have a Virtual Private Server which I can connect to using SSH with my root account, being able to execute any linux command and access all the disk area, obviously. I would like to create another ...
5
votes
1answer
1k views

What do the number suffixes in Linux dynamic libraries mean?

Here's an example: ~$ ls /lib/*.so* | head -n 10 /lib/ld-2.13.so /lib/ld-Linux.so.2 /lib/libacl.so /lib/libacl.so.1 /lib/libacl.so.1.1.0 /lib/libanl-2.13.so /lib/libanl.so.1 /lib/libattr.so ...
1
vote
2answers
2k views

Linux command-line program that switches consoles?

For whatever reason, the "Ctrl-Alt-Fn" sequence has no effect on one of my Ubuntu machines; the sequence is interpreted as ordinary input. I need to get the system to a console because I'm trying to ...
15
votes
6answers
27k views

How do I uncompress vmlinuz to vmlinux?

I have already tried uncompress, gzip, and all other solutions that come up as google results and these have not worked for me. To get just the image search for the GZ signature - 1f 8b 08 00. ...
20
votes
5answers
3k views

Is it possible to speed up ./configure?

To compile a software package on a workstation with many CPU cores (say 12), the configuration stage often takes much longer than the actual compilation stage because ./configure does the tests one by ...
0
votes
3answers
1k views

Will Having a dual-boot Windows and Linux on my laptop cause it to slow down in general use?

I have Windows 7 on my Dell Xps laptop, and I want to install Ubuntu or Fedora as a dual-boot. Will that cause my system to slow down?
3
votes
1answer
553 views

Alternatives to Gentoo Prefix?

Are there any package managers that: work without root privileges, and install packages at a custom location (similar to ./configure --prefix), and install stable packages (unlike Gentoo Prefix ...
4
votes
2answers
2k views

how to configure Linux to call oom_kill on its own

I do not want my computer to swap data to disk. I have no swap partition: $ free total used free shared buffers cached Mem: 3841912 3670012 171900 ...
3
votes
2answers
4k views

Make `cp` choose no when prompted to overwrite

I have a list of files that I am copying around for various purposes. What my current command looks similar to this: cat list_of_files | xargs -I {} /bin/cp -f {} /destination/dir I am using the ...
0
votes
3answers
334 views

Format change data in file. Multiple sed commands?

I'd like some advice on changing the formatting of some data in a file. I have a large amount of data in a file. This is a output from a large Fortran program, it is formatted for a latex table. I ...
2
votes
2answers
6k views

Linux:How to hibernate after a period of sleep

One of the windows features I miss in linux is the following: In windows you close the notebook lid and the system suspends to RAM, after a while (configurable) the computer automatically wakes up and ...
2
votes
1answer
185 views

What does kernel entry in Grub configuration file mean

I have looked at the GNU GRUB Manual 1.99 at (http://www.gnu.org/software/grub/manual/grub.html) but I cannot find an explanation of what the kernel entry / command in the grub.conf file means. I get ...
3
votes
1answer
117 views

Play sound depending on command return status

Is there an utility which takes a command as argument, runs it and plays sound (or just beeps) depending on the return status? "Good" beep if it's success and "bad" beep if it's failure. So I can run ...
0
votes
2answers
460 views

Is there a HTTPFox for Ubuntu/Linux?

Is there an application in Linux that allows me to see all outbound HTTP requests like the HTTPFox Firefox plugin. In case you don't know about HTTPFox, the screenshot below shows what I am looking ...
2
votes
1answer
2k views

What is the filename (including path) of a WordPress database?

I have local Wordpress database that got corrupt as a result of an abrupt power outage (I wasn't even editing it!). Since the system I am dealing with is pretty static (and old), I just want to ...
0
votes
3answers
3k views

Linux PuTTY - automate su for password related issue

I am connecting to a server via PuTTY as follows: putty.exe -ssh user@host -pw password -noagent -m commands.txt After that I have to use: su someUser It will ask for a password - I have put ...
1
vote
1answer
157 views

Set permissions so that Apache and I will be able to edit files

I'm on a Mac, but I guess it applies to Linux too, since I'm using a command line. When I write web applications, the apache user (which is _www on a Mac) has to be able to edit files as well as me. ...
1
vote
1answer
84 views

Upgrading hard drive while saving existing system data, and allowing for a dual OS boot

I know this has been asked in individual parts, but I'm looking for a way to do this with the fewest steps and least pain. I have a laptop with Windows 7, and I want to make a move to a larger hard ...
2
votes
4answers
4k views

File still unwriteable in /var/www/html after the chmod command

I've got some trouble while trying to install some applications on my linux system. It is said that the files in my /var/www/html/xxx directory, where I put them, is not writeable. The command chmod ...
4
votes
1answer
726 views

Find misses a match to glob pattern unless the pattern is made more specific

I was using find to search for a file on my machine like so: find / -name version-1.0.* and the result was just one file in my home directory, version-1.0.23. However, if I ran the following: find ...
1
vote
3answers
1k views

Making a Linux live CD bootable from Compact Flash (CF)?

Making a live CD using tools such as livecd-creator seems like a good solution to create a bootable read-only image to install on Compact Flash. My goal is to prevent failure due to write cycle ...
2
votes
3answers
979 views

Listing tar contents inside directory

this is the script I'm running tar tf some.tar somefolder_insidetar And output it's a list with all folders, files, and SUBDIRECTORY Files, the only thing I need it's just show the contents (folder ...
1
vote
2answers
468 views

Unix, find command, and false negative

Performing a search from the current directory where this file resides, this find command finds the file. # find . page.tpl.php However, when I search from a child directory, this command, # find ...
4
votes
1answer
5k views

resize2fs seems stuck at pass 3 (scanning inode table) - what to do?

I have a machine running Arch Linux (2010, I believe) with a 6TB RAID-5 array hooked up to a Highpoint RocketRaid 2320. I've been having issues with the RAID controller's drivers and the latest Linux ...
5
votes
4answers
5k views

How to restore MAC address in Linux?

I have changed my MAC address in my Linux machine using ifconfig. Now the problem is I have not saved my original MAC address. I want to restore it without rebooting. Is there a way to do it?