2
votes
1answer
23 views

Reboot when there is a hardware failure without physical access to machine?

I'm getting this error message whathever I do: $ sudo reboot bash: /usr/bin/sudo: Input/output error $ reboot bash: /sbin/reboot: Input/output error It's a hardware failure according to this ...
1
vote
0answers
34 views

Telnet IAC commands

I want to turn off character echoing in Telnet via linux command line by sending "IAC DON'T ECHO" command. I have been searching everywhere, and I couldn't find how to to do. Basically, I don't know ...
0
votes
1answer
53 views

Recursively delete hidden directory & its files?

I want to delete all hidden directoris from a directory and its sub-directory. I also use rm -rf .directory_name this command is iterative command I want to a recursive command. Please anybody help ...
3
votes
1answer
69 views

What's the difference between \b and \< in the grep command

In the man page of grep, I see The symbols \< and \> respectively match the empty string at the beginning and end of a word. The symbol \b matches the empty string at the edge of a ...
1
vote
0answers
29 views

How to use fslint (in particular findnl) on the command line to actually mimic the behavior of the fslint-gui?

So I am trying the fslint tools. However, the help included in those tools as well as the man page don't indicate that the cleanup actions offered by the fslint-gui are also available through fslint ...
1
vote
2answers
31 views

MediaTomb fast image resize

The goal is to setup MediaTomb to (almost) instantaneously resize a 4-7MB jpeg from its original 8 or 12MP resolution down to somewhere about 1280x* so that it can be viewed on a mobile device. ...
1
vote
0answers
57 views

/bin/ and /usr/bin Command Tutorials [closed]

Let me first start off by mentioning that I am not a Linux newbie. I have personally been using the GNU\Linux for nearly 5 years now. However, often times I run across the commands under /bin/ and ...
2
votes
2answers
67 views

Custom help / man -like command (for reminders)

I often end up in a situation, where I don't use a command for a while, but then suddenly need to use it; and I need to wade through several help pages until constructing the command line I want. Case ...
0
votes
0answers
26 views

Bluetooth profile info in linux

As Bluetooth device has a number of Bluetooth profiles. when want to do communication is Bluetooth device, first pair Bluetooth device and then starts sending data using Bluetooth. In Linux, ...
2
votes
2answers
88 views

Command Line Photo Organiser Like Shotwell but to run on headless server

Does anyone know of a program (or even bash script) that can take photos from various folders and then consolidate them into one place and organise them into a directory structure by date in the way ...
1
vote
1answer
99 views

usbhid can't find input interrupt endpoint

I have Scientific Linux 6.5 installed. From the beginning (on this computer) I constantly see this line jump in between all starting commands during the start up of the system (when I press esc to see ...
-2
votes
1answer
115 views

What is the difference between egrep, fgrep, find and grep commands? [duplicate]

i am new to linux console, however i know i can use grep to find files however i am wondering what the particular difference between these common commands ? They all seems to be equal in meaning to ...
3
votes
2answers
50 views

Pipe / direct image / video output to foreign server

I am working on a Project that involves taking the output from a Webcam which is in either jpg or h.264 format, and outputting it to a foreign server (HTTP / FTP would work, I am open minded). What is ...
1
vote
2answers
34 views

Slight change to command to compile C++ program causes error

This morning , I was trying to compile a C++ program using the following command on the command line g++ -o foo.cpp foo I spend about an hour trying t to resolve why I kept getting undefined ...
4
votes
2answers
133 views

Dump process's stdin and stdout

I have two processes, let's say Parent and Child. Parent launches the Child and communicates with it through child's stdin and stdout. Parent <-> Child These processes use text protocol and I ...
1
vote
1answer
57 views

How to alter stored procedure in a MySQL database using the Linux command prompt?

I want to alter the stored procedure in my server machine. I'm uploading the codes via SSH Linux command prompt, I need to alter an existing stored procedure in my server. I don't have c-panel or ...
2
votes
4answers
84 views

Incrementing a variable each time the system boots up

The idea is to initialize a variable and set it to 0. Then create a script that executes on boot and increments that variable by 1 each time the system boots up again. Sounds simple enough right?
0
votes
1answer
42 views

What is the different bash per terminal session for Konsole?

I am using Konsole in Kubuntu. I was wondering what is the difference between a profile in Konsole and the profiles in our bash? I am reading that we can create different profiles per Konsole session ...
2
votes
2answers
132 views

How do I share stdout between multiple processes?

I want to receive live TCP stream, and make it readable by another processes at the same time, without saving it. For example, 111.222.233.244:1234 streams actual time. Server supports only one ...
0
votes
2answers
86 views

Simplest wget example Scientific Linux

I'm on Sci Linux and know nothing about commands. How can I use the wget command? Can someone provide a simple example where it actually downloads something? How do you specify where the download ...
0
votes
2answers
88 views

Using notify-send with a non-interactive ssh connection

I want to be able to use notify-send to send popup messages from one server to be displayed on another. I'm sure this is possible with SSH, but how can I automate it to a one-line command that ...
0
votes
2answers
61 views

How do I prepare Windows NTFS drives on Linux

I'm upgrading my windows desktop hardware and doing a clean OS install. I'm using SystemRescueCD to prepare my old drives for the upgrade. Long story short, a bit of an emergency, I coudln't do this ...
1
vote
2answers
168 views

How do I grep a file in a smb mount point without using mount or fstab?

I don't have permission to mount a smb share with the mount command or by using /etc/fstab, but I'm able to use the smb protocol in Nautilus (smb://10.1.1.1/share), for example ... s Is it possible to ...
2
votes
1answer
32 views

'which' reports one thing, actual command is another [duplicate]

I am running Ubuntu 12.04, which came with Cmake v 2.8.7. I had need for a more current CMake, so I downloaded the source for 12.8.12.1, built, and installed it per directions. The last step, make ...
1
vote
2answers
307 views

Error Installing “ia32-libs” to run ADB and Fastboot Linux Mint 16 “Petra”

I have been trying to get adb, fastboot, avd and others to work with the latest version of Linux Mint (16 "Petra") I originally got this error when trying to run ADB: ➜ platform-tools ./adb ./adb: ...
1
vote
1answer
72 views

Replace spaces and tabs at the end of the line in all files

I need to replace all unwanted spaces in all files from the current directory and from directories from the current directory (recursive search). I define the unwanted spaces the spaces and tabs that ...
7
votes
3answers
303 views

what is meant by vi and emacs editing modes [duplicate]

What is meant by "Enabling command line editing and vi and emacs editing modes"? I know vi is an editor and have used it as well, but what and how is it related to command line editing bamboozles me. ...
1
vote
1answer
282 views

Linux empty buffer cache command permission denied

I'm using the following commands to flush cache: # sync; echo 3 > /proc/sys/vm/drop_caches # sync; echo 2 > /proc/sys/vm/drop_caches # sync; echo 1 > /proc/sys/vm/drop_caches When I use ...
1
vote
1answer
101 views

Mount home partition on user login

I got a VPS with a user dedicated to store my files. As i am aware of the current situation with the NSA and many other governments, and my VPS is hosted on a doubtful country i would like to ensure ...
4
votes
2answers
62 views

Using newline delimited list as parameter

There have been several situations where I have had some output such as thing1 thing2 thing3 But have wanted to do something like: *command* thing1 *command* thing2 *command* thing3 An example ...
-4
votes
1answer
49 views

Why is learning command line imporatant? [duplicate]

I googled this question many times but could not find a good reason why the knowledge of command line is important.Some say GUI cannot be used always but there are no examples supporting their ...
1
vote
2answers
195 views

Running bash script gives `No such file or directory` when run with path [closed]

I have bash script aaa.sh that runs fine when I run it from the current directory. But if I try to run using the full path /home/vik/Projects/updd/aaa.sh, my system tells me No such file or directory. ...
2
votes
1answer
55 views

bash: color matching string [duplicate]

I am looking for a command which would color a matching string in text. I.e. I am looking for functionality similar to what grep does, but I want to see the complete text not only the matching lines ...
-2
votes
2answers
115 views

How to handle binary data in Linux [closed]

One of the my servers gives me data with Content-Type: application/binary, i.e data that I am getting looks like some alien data. Now I need to convert that data into plain data, but I am not aware ...
0
votes
1answer
102 views

what does the following command do?

what does the following command do? I have tried to study the linux command but I could not find out what this command does. here is the command: touch finger ; finger touch
4
votes
3answers
258 views

OS X/Linux one-liner/script to find the largest recurring group of lines in a text file?

I have a log containing an execution trace where there is infinite recursion eventually terminating when the stack is too deep. There are enough lines and valid included recursion within the larger ...
0
votes
0answers
27 views

How to use grep command to find the matching pattern and some more characters? [duplicate]

I have a compressed JS code and I want to find a pattern, but since the file is compresses, it has only a line, and the match pattern is all the file. The output is too much large. grep -r ...
1
vote
1answer
218 views

Script to delete text files

I was trying to make a script that searches for all ASCII text files in the directory that you give and after that writes path of every file to a text file. After that it suppose to show head of each ...
0
votes
1answer
96 views

How to pass wildcards in command line [closed]

So this works: foo -a -b -c "path/file.ext" And this too if I want to pass all files from directory: foo -a -b -c path/* But if I add the quotes foo -a -b -c "path/*" It doesn't work anymore: ...
5
votes
5answers
1k views

How can I see dmesg output as it changes?

I'm writing a device driver that prints error message into ring buffer dmesg output. I want to see the output of dmesg as it changes. How can I do this?
3
votes
2answers
129 views

cp -L vs. cp -H

Problem When copying files with cp -H or cp -L, I get the same results: $ ls -l fileA fileA -> fileB $ cp fileA somewhere/ -H $ ls -l somewhere/ fileA # fileA is a copy of fileB, only ...
4
votes
3answers
231 views

convert soft- to hardlinks with cp

The cp command's infopage offers on the option --preserve= the following: links Preserve in the destination files any links between corresponding source files. Note that with -L' ...
3
votes
3answers
1k views

How to bring up a wi-fi interface from a command line?

I can't figure out how to properly bring up the wi-fi card on my laptop. When I turn it on and issue $ sudo iwconfig wlan0 txpower auto $ sudo iwlist wlan0 scan wlan0 Interface doesn't support ...
2
votes
1answer
178 views

Using Command Line (Linux) how do I enable the Bluetooth Adapter?

I have 1 BlueTooth adapter on my laptop. Using the command line, I want to be able to enable / disable it. This would be the same functionality that is achieved using GUI -> Bluetooth settings -> ...
27
votes
7answers
2k views

Easy way to determine virtualization technology

I have command line access to a Linux machine which may or may not be virtualized. I want to determine what kind of virtualization technology it runs on, if any (VMWare, VirtualBox, KVM, OpenVZ, Xen, ...
1
vote
1answer
76 views

Best way to find the active wireless device

Of course I know the command: iwconfig which lists devices (and gives info about whether they have a wireless connection). For the purposes of a shell script, I'm really wondering, is there any way ...
1
vote
3answers
195 views

Which cmd is the best for determining the OS' word size (32/64)-bit? [duplicate]

I need to find my OS (not hardware) is 32-bit / 64-bit. Which command is best? uname -p uname -i uname -m arch All the above commands returns the same answer: On 32 bit systems: i686/i386 On ...
-1
votes
1answer
249 views

How to create a GUI in shell script without any third party libs just like setup command [closed]

How to create a GUI in shell script without any third party libs (like setup command)
3
votes
1answer
1k views

Command to transpose (swap rows and columns of) a text file [duplicate]

Is there currently a generic command that will "pivot" input. e.g. #labeled.file name: bob title: code monkey name: joe title: pointy haired is converted to: name title bob code monkey joe ...
1
vote
2answers
2k views

tar: short read

I get an error when I uncompress my tar. I do this: tar xvf VM_DECOMPTES.tar and after some time I get the following error: tar: short read What is going wrong here? tar: unrecognized ...