All Questions
218,908
questions
114
votes
8
answers
41k
views
How do I get bash completion for command aliases?
I am looking to get tab-completion on my command line aliases, for example, say I defined the following alias :
alias apt-inst='sudo aptitude install'
Is there a way to get the completions provided ...
4
votes
1
answer
12k
views
How to install Fedora from an ISO on a USB?
I have a Fedora 14 x86_64 iso image and I want to install it using a USB stick. How do I get this stick to boot up, and use the image to start the installation? I'm running Debian.
59
votes
4
answers
50k
views
What is the difference between a job and a process?
What is the difference between a "job" and a "process"?
1
vote
1
answer
507
views
How to mount external hard disk every time the server is restarted?
I have a server which the date will be backup to a external windows server hard disk which is mounted. But problem is every time the server is restarted I will need to mount the disk manually. How do ...
5
votes
1
answer
430
views
What is the typical file limit of a folder on *nix file systems?
Obviously, if you stick a lot of files in one folder, the efficiency of various file operations is going to go down (e.g. ls takes a lot longer). However, what's the limit for how many files you can ...
1
vote
1
answer
1k
views
SME server install from USB crashes with "IOError: [Errno 30] Read-only file system"
I managed to make my 8.0GB USB flash drive boot the current SME Server 8 beta ISO image. The installation program starts when I boot from USB, and configuration of install options worked fine.
After ...
8
votes
1
answer
1k
views
How can I write a new syntax highlighter for gedit?
Some times I wish the particular language I happen to be writing in had syntax highlighting. How can I add that?
18
votes
3
answers
5k
views
FreeNAS grub2 booting ISO
I've got usb-keys setup to multi-boot different Linux images. I wouldn't mind adding FreeNAS, and there's a doc with samples to add to grub.cfg
menuentry "FreeNAS-8.0.4-RELEASE-x64" {
insmod ufs2
...
3
votes
1
answer
170
views
How to make my linux-2.6.24.4 to identify a hard disk with serial mode on intel 3201 mainboard
How to make my linux-2.6.24.4 to identify a SATA hard disk on an intel 3201 mainboard?
I have pre-load modules libata.ko ahci.ko scsi_mod.ko sd_mod.ko, but it doesn't work on intel 3210 mainboard. On ...
26
votes
1
answer
6k
views
Is there a way to redirect a program's output and still have it go to stdout?
Okay. If I wanted to redirect the output of a program to a file, I'd do something like this
prog > file
If I wanted to redirect both stdout and stderr to that file, then I'd do
prog > file 2&...
8
votes
3
answers
2k
views
Temporary .vimrc
Is there a way to read a .vimrc file for only a single ssh session? That is, when I log in I perform some operation so that vim uses say /tmp/myvimrc until I log out?
I do not want to permanently ...
127
votes
7
answers
240k
views
What is /usr/local/bin?
Before today, I've used the terminal to a limited extent of moving in and out of directories and changing the dates of files using the touch command. I had realised the full extent of the terminal ...
15
votes
2
answers
18k
views
sort output by column
I'd like to take this command find -maxdepth 1 -type d | while read -r dir; do printf "%s:\t" "$dir"; find "$dir" | wc -l; done ( from here ). which has an output of basically
./kennel: 11062
./...
9
votes
1
answer
604
views
Is it possible to name windows in emacs
I would like to be able to name a window in emacs, and specify that window when opening and creating new buffers. I've looked through the manual but all I can find is find-file-other-window, which ...
2
votes
0
answers
70
views
Hanging install blocks new installations on WebOS [closed]
I tried to install an application via AppScoop. From that point on no further installs were possible because of a hanging install (see picture). Can you please advice how to cancel the hanging install?...
9
votes
2
answers
512
views
Automounting plugged devices in linux
Auto-mounting seems to be a bit of a messy thing in linux.
The options to automount ranges from autofs, udev, hal or even filemanagers.
What is the best-practice method to enable automounting on ...
4
votes
2
answers
880
views
How to find files with names having a long string after the first dot
My Samsung Galaxy S doesn't like files where the name contains a long string after the first dot. I guess some part of the software has a too short buffer for the file extension. How can I find all ...
5
votes
2
answers
4k
views
OpenBSD: 32 bit or 64 bit
I would like to use the 64 bit version of OpenBSD,
but I'm not really sure how good it works.
Are there any known problems? Is the 32 bit version more recommended for productive environment?
8
votes
3
answers
1k
views
Why do tar and gzip files usually have a file extension?
File extensions are not necessary on unices, still every tarred, gzipped or bzipped file I encounter has a file extension like .tar, .tar.gz or .tgz.
Is there any special reason for that or is that ...
1
vote
2
answers
295
views
How would you create a user with the HOME_DIR field in /etc/passwd completely blank?
Closest I can come is:
useradd --home / -r --shell /sbin/nologin someuser
But this creates an entry into /etc/htpasswd that looks something like this:
someuser:x:100:100::/:/sbin/nologin
I want ...
4
votes
5
answers
7k
views
Does $SHELL store the path to the default shell in Linux?
My administrator says that my default shell is set to bash, but
$ echo $SHELL
/bin/csh
$
Is the default shell related to the SHELL variable at all? Is not, what is the variable used for?
9
votes
3
answers
949
views
GVim compiled from source opened via SSH -X does not copy paste on selection
I'm using SSH (with -X specified) from a Ubuntu box to a RHEL4 box and running GVim. It opens as expected in my local X, but the copy and paste via select doesn't work. I cannot select text in GVim ...
2
votes
1
answer
242
views
Resource needed to manage cert.db7 files for AIX
On AIX to get LDAP authentication working it has wanted to store the LDAP SSL certificate's trusted root in a cert.db7 file. Mozilla stopped supporting it in NSS (Netscape Security Services) a while ...
24
votes
3
answers
22k
views
What are the benefits and downsides to use FuseFS filesystems?
I know some filesystems present themselves through Fuse and I was wondering about the pros and cons to this approach.
3
votes
1
answer
2k
views
How to have correct permissions of files from usb disks?
Does anyone have the following problem?
I have an Ubuntu box at work and also one at home.
I always copy folders/files to/from an usb disk to/from my boxes.
I have to change permissions of folders/...
235
votes
31
answers
232k
views
Markdown Viewer
I found a file formatted with Markdown. Could you guys suggest what viewer that I could use to view this type of files? Hopefully one without gui (if it's possible)
Update
I was actually looking for ...
7
votes
2
answers
8k
views
Add Apache to Ubuntu's startup
I'm currently learning the Linux environment, and decided to manually install the Apache server. For educational purposes, I've compiled it into:
/server/apache
The http.conf location is configured ...
3
votes
1
answer
2k
views
Apache server 32 binaries vs 64 binaries? what's the difference
For Windows I used to download either 32 bit binaries from ASF site or 64 bit binaries from Apache lounge site (for no particular reason). So - that was the way I new what version I have.
I've ...
5
votes
2
answers
295
views
What is the most advanced image editing FLOSS?
Is it still GIMP? Inkscape? Are they too different to compare? Does anything come close to the two? Are they more/less advanced than Photoshop?
note: advanced = more features
12
votes
1
answer
1k
views
What happens to data in swap when your computer hibernates?
When a computer goes into hibernation mode, it saves the contents of the RAM into the swap space so that it can resume exactly where it left off when it powers back on.
So, what if you are currently ...
1493
votes
10
answers
450k
views
What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?
I think these terms almost refer to the same thing, when used loosely:
terminal
shell
tty
console
What exactly does each of these terms refer to?
20
votes
8
answers
3k
views
Is screen useful?
When I need to open different processes or terminals that I need to check, I just open a new tab in my terminal and use different workspaces in my machine to keep everything organized.
I do some web ...
2
votes
4
answers
307
views
How can I manipulate the content of a file, by duplicating and changing some parts?
I want to manipulate a text-file. It contains many blocks of the form
CLASS
...some stuff ...
END
I want to duplicate each of these blocks and add and remove a line of it's content. Can I script ...
32
votes
3
answers
13k
views
ls command: what does the first line mean?
When I do ls -l I get this:
calico@A000505:~/Documentos$ ls -l
total 2020
-rwxr-xr-x 1 calico calico 8559 2010-11-16 11:12 a.out
-rwxrw-rw- 1 smt smt 2050138 2010-10-14 10:40 Java2.pdf
-...
78
votes
11
answers
160k
views
How do I count all the files recursively through directories
I want to see how many files are in subdirectories to find out where all the inode usage is on the system. Kind of like I would do this for space usage
du -sh /*
which will give me the space used in ...
3
votes
2
answers
2k
views
What is the difference between X and XFree?
Why are there two programs for that?
4
votes
1
answer
116
views
Broadcast to all users in friends list with kopete?
in kopete you can right click a group and send a message to the group. It also seems there's a hidden toplevel group that you can move users to. Is it possible to send a message to this toplevel group ...
10
votes
2
answers
19k
views
Force dhcp client to get a new lease
I have a linux DHCP server running on my network.
I recently found out that I can assign specific IP addresses to clients based
on their MAC address by modifying the dhcpd.conf file.
Now is there ...
206
votes
8
answers
105k
views
Is Linux a Unix?
So, there are lots of different versions of Unix out there: HP-UX, AIX, BSD, etc. Linux is considered a Unix clone rather than an implementation of Unix. Are all the "real" Unices actual descendants ...
11
votes
8
answers
38k
views
What is your favourite shell script GUI/CLI editor and why? [closed]
I'm using vim for editing bash scripts currently, but I really need to set it up and/or install plugins. Plugin suggestions welcome. Either way, I'd like to see which editors/IDEs there are for this ...
80
votes
8
answers
28k
views
put history command onto command line without executing it
I use !n where (n) is the line number for executing a line in the history file I want executed at the command prompt which I find via history|less.
But there is a command line history event I wish ...
6
votes
1
answer
1k
views
Switch display output without rebooting but not in Xorg
My graphic card has two output (VGA and DVI). Is it possible to switch from one to the other without rebooting ?
It works in Xorg by restarting the X server (I guess it should be doable with xrandr ...
4
votes
2
answers
408
views
GUI archive manager that works well over ssh
I'm using file-roller and it doesn't work well when my archive file is accessed via ssh (it throws an error when I try to open it). Any alternatives?
4
votes
1
answer
241
views
X stuck when using OpenGL
On a stock Dell, RHEL 5.3, my X gets stuck when running any OpenGL program for more than a few seconds. After a few seconds, the screen freezes, and after another few seconds sometimes the screen ...
17
votes
6
answers
4k
views
Why does xargs cause apt-get to abort?
I'm trying to remove a list of packages from a file. I'm using the following command:
cat packages | xargs sudo apt-get remove
packages is my file containing a list of packages I want to remove. ...
4
votes
2
answers
2k
views
In OSX ssh-keygen creates a key but then the session won't connect
I made a key, but it logs me back out as i try to setup passphraseless logins to localhost:
$ rsa-keygen -t rsa
$ cat id_rsa.pub > authorized_keys
$ ssh localhost
The authenticity of host '...
12
votes
1
answer
10k
views
How does partprobe work?
I was looking for a way to refresh the scsi bus (or any other bus, for that matter) that would allow my kernel ( 2.6.18-194-el5 on CentOS 5.5) to know about the partitions on a drive, and I couldn't ...
17
votes
4
answers
13k
views
How to detect and remove a Linux trojan?
I recently (re)stumbled upon this:
Linux Trojan Goes Unnoticed For Almost A Year (Unreal IRCd)
Yes, I know that adding some random PPA/software from an untrusted source is asking for trouble (or ...
27
votes
8
answers
21k
views
Linux boot loaders supporting full disk encryption?
Are there any Linux boot loaders supporting full disk encryption (a la TrueCrypt). I know there was work towards adding encryption support to GRUB2, but this does not seem to be ready yet. Any other ...
9
votes
1
answer
1k
views
What steps does the system go through when handling an SSH connection?
What steps does the system go through when handling an SSH connection?
We try to log in via ssh
sshd starts pam and pam module to authenticate us
Depending on pam configuration, we need to provide ...