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
88 views

Linux at USB HDD: should I install it as persistent?

I want to install Linux on external USB hard drive. Should I install it like at flash-drive, i.e. with persistent mode enabled? HDD: 1 TB, USB 3.0 but I'm likely to use it with 2.0 because my PC ...
1
vote
1answer
719 views

How to detect and run custom scripts on docking / un-docking of ThinkPad?

I'd like to run custom scripts on docking or un-docking my ThinkPad X220. Obvious place is some udev rule, but what events or attributes should I use? Another option is acpi. Is it better option? ...
1
vote
2answers
4k views

Trying to install libcurl on a Linux RHEL, unable to install openssl

I am a programmer, and I am trying to give a clear sure fire way for the engineering team to install libcurl on a Linux RHEL machine. The machine already has the following installed by default: ...
3
votes
1answer
247 views

How can I print two small files on the same page with a2ps?

I'm using Ubuntu Linux 12.0.4.1 LTS and I like the auto-formatting that a2ps does. I just want to print several small files using as few pages as possible. Example: a2ps file1.c file2.c file3.c ...
2
votes
0answers
459 views

Random freezing caused by khugepaged?

I have a fairly beefy Arch Linux computer, kernel 3.7.7-1-ARCH. However, recently it's been having random freeze ups. Never common, but it'd freeze for a good 15 seconds where no program is ...
0
votes
2answers
559 views

Accidentally renamed a file in centos 5 in /lib folder, no idea what it was called, how to find out?

In the above image it I renamed the file accidentally to l and I have no idea what it was in the first place. It's sorted by name, and I am 99% sure it started with an L, most likely lib.... And ...
2
votes
2answers
1k views

Linux command line tool to batch rename MP3 files based on ID3 tag info, or give random name if no ID3 info present

I have a bunch of recovered mp3 files that have system generated filenames. I want to use any embedded ID3 tag info in the files to rename each one to something human readable. I've tried 'mp3rename' ...
7
votes
2answers
10k views

What do different values of hard drive's Advanced Power Management feature (hdparm -B) affect, except spin-down?

hdparm's -B parameter is documented as: Get/set Advanced Power Management feature, if the drive supports it. A low value means aggressive power management and a high value means better per‐ ...
1
vote
2answers
520 views

Possible to use “screen” over SSH in script?

I am having this interesting problem, where I would like to start this command nc -l 8023 | zfs receive tank3/pro1 on a remote host 10.10.10.11. If I run ssh -n 10.10.10.11 'nohup nc -l 8023 | ...
1
vote
1answer
277 views

Linux CPU energy saving hacks

I have a quad core CPU (Phenom II 945), because sometimes I need performance, but most of the time, 4×800 MHz (the minimal frequency) is still overkill for most usages. So, three questions ...
1
vote
2answers
10k views

How To Find Proxy Server Port and IP

I use a wireless network at a library which requires me to login and authenticate through a web-browser login form. Once I log in, how can I find what the details of the proxy are (IP, proxy type and ...
1
vote
2answers
2k views

Delete directory and subdirectory - Operation not permitted

There is a folder called Trash-1000 and i want to delete it. There are some folders in it which cannot be deleted (do not even know how they were created). Looks like: ...
0
votes
1answer
609 views

msiexec command not found in linux to install msi file

I had a .msi file which is developed in asp.net in windows now i want to install .msi file in linux by using the command in terminal as follows msiexec /i myfile.msi but it show msiexec command not ...
-3
votes
1answer
80 views

is there a linux distrobution that has the opposite philosophy as ubuntu? [closed]

The Ubuntu developers seem to wish to change the interface often, focus intently on appearance, and attempt to make it as easy as possible for newbies to use. What distribution has the opposite ...
0
votes
1answer
64 views

Why is Linux not connecting to WLAN

I have a tri-boot laptop, and two of the operating systems I have are Ubuntu 12.10 and Windows 8. On Windows 8, I can access the WLAN, however whenever I restart the computer it defaults to having ...
1
vote
3answers
1k views

Why cannot `ftp` program read a file in /tmp directory?

While making an automated ftp upload script, I noticed a very strange behaviour of ftp program: if I want to send a file which belongs to /tmp directory, ftp will always fail and give an error ...
0
votes
1answer
71 views

Sandboxing of files without a new user

Is it possible to isolate certain folders from all programs except one, without creating a new user? A bit like a reverse sandbox. Specifically I want to protect the .bitcoin folder from being ...
3
votes
1answer
319 views

Get the time it took to execute the previous command in linux(without re-executing that command)

I know the time command allows you to time the execution of a given command. But is it possible to get the execution time of the previous command without re-executing that previous command?
6
votes
3answers
5k views

sshfs mounting linux directory from mac stopped working

Until this morning, I'd been using sshfs quite nicely to mount a directory from a linux machine in my office. Today, it stopped. Here's my sshfs command: sshfs -osshfs_sync,volname=linux-builder3 ...
1
vote
1answer
60 views

.desktop file supported on which operating systems?

On which operating systems can we use the .desktop file from unix / linux? Is there a list of operating systems which support and use it? Do they all use he same syntax, settings and properties or ...
0
votes
0answers
187 views

IPTables masquerading stops working

In a classical SOHO setup I am running a Debian box as router/firewall. For an unknown time now I have an issue, where the MASQUERADING on the output connection (PPPoE) stops working for one of the ...
1
vote
0answers
308 views

Squid + Dansguardian Google instant filtering

I have a proxy setup using squid with dansguardian for filtering. Everything is working fine but Google instant and images. I find that dansguardian is no longer able to force safe search. It seems ...
1
vote
2answers
4k views

Code and compile locally on a Dev-Mode Chromebook

My school has given me a Samsung ARM Chromebook, and I am encourage to go into developer mode and mess around with it. I know how to access crosh and shell, and I found that vi is installed locally ...
0
votes
1answer
385 views

hide pid when a process is launched in background

So I put this command vncconfig -iconic &, this causes vncconfig window to launch and terminal will display like [1] 13488. I want to hide this pid info. That is, when we put the command, only ...
2
votes
1answer
4k views

Shell Script to GZIP files without overwrite .gz files

I'm trying to create a shell script which receive as first parameter of a path to a folder which I would like to compress all files using gzip without overwrite the .gz files that already exist in ...
1
vote
1answer
667 views

Using different .cshrc.user files

I have two .cshrc.user files for two different projects. For example, they set the same environment variables but with different values. When I'm currently switching between projects, I run a python ...
0
votes
2answers
203 views

prevent automatic deletion of /etc/hosts entry

I am using a Linux Ubuntu Precise 12.04 version. I have added a virtual host entry in my /etc/hosts XX.XX.XX.XX www.domain-name.com After sometime, this entry got deleted automatically. What ...
2
votes
3answers
210 views

Is there a command line equivalent to cut and paste metaphor for files?

Context: I am navigating around in folders, and finding files I need. I would like to copy my files somewhere to place them somewhere else. But I don't want to have to deal with trying to figure out ...
1
vote
1answer
245 views

What partition(s) should I put on ssd?

So I just recently got a new laptop (Inspiron 15z w/ i7 and non-touch) and it comes with a 500GB HDD like my old laptop but it also has a 32GB SSD. Now, Ive been looking at the disks in Disk ...
0
votes
2answers
1k views

Space ending in rootfs

My problem is that I think in a couple of days there will be no space free in rootfs. Is is possible somehow to 'clear' rootfs from unnecessary files? What should I look for? Rootfs is mounted into ...
0
votes
1answer
572 views

How to unblock blocked wget and aptitude?

My debian server's wget and aptitude was blocked by firewall administor. Which ports should I inform firewall to unblock?
0
votes
3answers
369 views

File exists but cannot be executed from another folder

On my Fedora 16 machine, I have an executable file named 'WarpImageMultiTransform', and I can run it when I cd into the folder that contains it: [huangchao@localhost bin]$ ./WarpImageMultiTransform ...
1
vote
0answers
131 views

Avoid typing password every time using NX

I am running nxserver on a linux box and installed NoMachine Player on laptop. Every time I connect to nx on the linux box, basically it comes with two steps: SSH to user nx on the linux box On the ...
0
votes
2answers
1k views

Firefox for Linux hacked (malware)

I'm running Linux Mint, with Firefox 12.0 (Mozilla Firefox 1.0 for Linux Mint). I also have one Firefox extension installed: Live HTTP headers. I am not using Firefox Sync. Whenever I go to any ...
2
votes
1answer
286 views

How to set default boot operating system

My laptop can currently boot off Windows 7 and Windows 8, with Windows 8 set as my default operating system. I installed Ubuntu 12.10 off a USB Drive onto a partition on my hard drive, but when I ...
0
votes
2answers
968 views

Copying all files inside subdirectories and renaming instead of overwriting

I have a number of images inside subdirectories of another directory which I'd like to copy to one single directory so all the images are in one place. After a bit of searching, I found and then ...
47
votes
2answers
73k views

Bash: Display each sub-directory size in a list format using 1 line command?

I want to get a list of the directories and their sizes in a list format like how you get when you do a ls -l. The thing is that is there a one line command that can do this? I see others have long ...
0
votes
1answer
7k views

Viewing extended file properties via command line in Linux

In Windows it is possible to open explorer and add columns to view additional information about a file. For example in the image below, I added the columns for Company, Copyright and Description: ...
0
votes
2answers
943 views

Monitoring linux free disk space [closed]

I am looking for a solution that will monitor several linux (maybe windows) hosts on a given network, gathers free space, CPU usage, etc... "counters" and "publishes" this to a central location which ...
1
vote
1answer
798 views

how to read data from a file in shell script

I have two shell script files test1.sh and test2.sh . I have another file called translogs.txt. Now I need to copy the values of two variables in test1.sh to translog.txt and the same variables need ...
1
vote
2answers
347 views

tar backup zsh script

Trying to set up a cronjob ran tar script to backup site (without .git and setup folder) every night and upload time stamped archive to Dropbox. It gives me a hard time as archive is created along ...
0
votes
1answer
413 views

how to fix when deleted folder /var/lib/* centos 6

unfortunately, I deleted folder /var/lib/* in centos 6 how to recovery folder /var/lib/* in centos 6 Plz help me
0
votes
1answer
366 views

USB ports work in Linux but not in Windows?

I have a few USB 2/3 ports which work great in Linux, but cannot detect anything in them on Windows. This seems to be the problem, as shown in the Device Manager: Any idea why these two USB buses ...
10
votes
2answers
14k views

What is the default size unit in linux ls -l command

I wanted to know what is the unit ( bytes ,bits , kb ) of the output of the ls -l command in linux. Heres an example of what i got : -rw-rw-r-- 1 guest guest 39870 Feb 14 19:41 ser_cat ...
1
vote
2answers
826 views

List incoming connections on nc (netcat)

I set up nc on some computers in my office. They're connecting to our server like so: nc 192.168.1.2 3291 -e cmd Does anyone know how to list incoming connection attempts rather than accept one? ...
0
votes
1answer
423 views

Iptables: allow specific ips on specific port

I am trying to allow a few IPs on port 80 and disallow all other from access port 80. Can someone suggest the iptables rules needed for this to occur?
5
votes
3answers
767 views

I just ran rm /* accidentally, any fix?

I fell so stupid... I just ran rm /* accidentally, but I meant rm ./* on a cloud server with root access. Now, no one command works. ls, ssh, sftp... none. Is there a way to fix that? (Note: params ...
0
votes
2answers
386 views

OpenVPN which linux works best with

I have had problems using OpenVPN on Ubuntu 11.04. I am not able to connect at all. I see there are some outstanding bugs related to this that also affect 12.04. Can anyone recommend a different ...
0
votes
1answer
42 views

DNS nameserver for a specific domain

I need to be able to resolve one domain via a specific DNS server, while everything should be resolved by other DNS server(s). For example, resolve bbc.co.uk via 1.1.1.1 DNS server, but everything ...
18
votes
3answers
53k views

How to check if I have sudo access?

I recently got into trouble because of this. $sudo vim /etc/motd [sudo] password for bruce: bruce is not in the sudoers file. This incident will be reported. Is there a way to check if I have ...