0
votes
1answer
20 views

How do I count the total number of unique strings from a file using linux

In File1: OrderChange[a.1],partition=ORDER OrderChangeResponse[2.b],partition=ORDER I used below cmd getting output as 2 but it should be 1 as OrderChange in above file is 1. cat File1|grep -i ...
2
votes
2answers
19 views

Remove duplicate fields in a given column (after ID check)

I'd like to remove from a given column ($2 in the example) the duplicate fields (comma separated), but only if the ID column ($1 in the example) is the same. Input: A 1,2,3,4 A 8,9,10,11 A ...
1
vote
2answers
15 views

Remove duplicate fields in a given column [duplicate]

I'd like to remove from a given column ($2 in the example) the duplicate fields (comma separated). Input file: A 1,2,3,4 B 4,5,6,3 C 2,15 Expected output: A 1,2,3,4 B 5,6 C ...
0
votes
0answers
6 views

Recovering windows partition in Mint (testdisk fails)

Yesterday I messed up my partitions, wanting to replace Ubuntu with Mint. My other partition had Windows 8 on it. I booted Mint from a live USB and started the Mint setup. I selected the option to ...
0
votes
0answers
8 views

segmentation fault when running with high data resolution [on hold]

I have a tool that uses some ray-tracing computations. In this tool I can set the ray-tracing resolution grid. High resolution means more data and more accurate results. Also, the program uses ...
-1
votes
1answer
7 views

How do I change the Old Directory path to New Directory path using SED command

I have the old path it contains the some files. /home/ubuntu/Desktop/test-dir Now I want to change the test-dir to new-test-dir directory. /home/ubuntu/Desktop/new-test-dir How do I change ...
-1
votes
0answers
13 views

selinux can you explain it to me in Jo simplest way [on hold]

Hi am writing my red hat exam 200 and know a lot but am stuck with this SELinux
1
vote
0answers
12 views

Vim: Exit single character replace mode with <C-C> when using `nnoremap <C-C> <silent> <C-C>`

I've become far too trained to use <C-C> to return to normal mode. I understand there is a difference between <C-C> and <ESC> but that's beside the point of this question. I use the ...
2
votes
1answer
12 views

Reorder tmux windows

How can I efficiently reorder windows in tmux? For example, having this set of windows: 0:zsh 1:elinks 2:mutt 3:irssi 4:emacs 5:rss 6:htop What would I have to do to move rss to between ...
1
vote
2answers
16 views

How can I replace ^I into tab spaces in vim editor for .java file?

When I open my .java file in vim, I could see a couple of lines prefixed with one / more ^I characters. It looks like tabs in Eclipse that has got converted into ^I. I would like to replace a single ...
1
vote
1answer
20 views

Login to Skype from terminal or any other way

Please let me know if anybody knows how to login to Skype on Linux Mint from terminal or any other way? I have tried a lot but nothing found. Desktop # ./skype.desktop ./skype.desktop: line 1: ...
1
vote
1answer
23 views

Installing PHP 5.3.3-24 on CentOS 6.5 (Final)

I require a slightly older version of PHP for my server because I need to be able to exploit a CVE (CVE-2006-7243) that was patched in the newer versions. NOTE: This is a legitimate use case where ...
0
votes
2answers
31 views

Can't access mail server through SMTP

I'm trying to send email from a server. Testing on my local machine works fine but on my production Ubuntu server, the webserver fails when trying to send email. I'm using GMail as my SMTP provider ...
0
votes
2answers
20 views

How to send a output of unix command from one server to another server?

How to redirect the output of a unix command from one server to another server. I should be able to send the unix command's output from server-1. Then I should be able to receive the output in ...
4
votes
3answers
117 views

Does sudo a command temporarily change $PATH to be the root's?

When running sudo <command> under a user login session, will that change $PATH to be the root's $PATH during the running of sudo <command>? If <command> relies on the user's $PATH, ...
1
vote
1answer
16 views

What happens to the signals requested recursively?

People often hit Ctrl + c or Ctrl + z to cancel or abandon the job if the process gets sluggish, in this case which of these signals get processed, the first one or the last one? is each signal ...
1
vote
2answers
34 views

I get a “command not found” error, though the script file is shown by “ls”

I want to run yii console commands in shell. I run protected/yiic in the console, yet it fails, yielding -bash: yiic: command not found What's the problem? See the shell commands and responses I ...
0
votes
1answer
13 views

how to install adobe reader in Fedora 20?

I am not able to find an appropriate rpm to install adobe reader. Does anybody has a good way to install it? The system is 64-bit.
0
votes
2answers
17 views

Getting the size of parent folders when using find to search for criteria?

I am hunting for a certain regular expression within the filenames and am seeking to return the parent folders with their sizes in a unique fashion. For example, here is the command that I expected ...
2
votes
1answer
24 views

Grep does not seem to work properly for me

Command: LC_ALL=C fgrep -f /root/inputfile.txt *.txt > outputfile.txt inputfile contains this kind of stuff; -name1: -name2: -othername: *.txt (multiple files) contains things such as ...
1
vote
2answers
61 views

aliasing a slightly complex script on Linux/bash [duplicate]

Stormvirux provided this nice script in another thread. It puts column headings on the output of an ls -l listing: #!/bin/bash { echo Permissions links Owner Group Size Last_modMonth Last_modTime ...
0
votes
2answers
22 views

Is it bad to have too many Kernel modules?

I'm trying to compile a Linux kernel to debug an issue I have on Arch Linux, and I was configuring modules, but I didn't know what a lot of the stuff was so I left them on. If this kernel works I ...
3
votes
2answers
30 views

How do I cancel/replace one element of running `cmd1 && cmd2 && cmd3 && …` chain?

$ command1 && command2 && command3 Running command1 ... Running command2 ...^Z [1]+ Stopped $ fg && command4 & wrong_command5 && command6 Running command3 Running ...
3
votes
1answer
27 views

How to specify a higher ruby version for installing a gem?

I install a ruby package. $ sudo gem install pdfbeads ERROR: Error installing pdfbeads: nokogiri requires Ruby version >= 1.9.2. says that it needs ruby version greater than 1.9.1. My ...
2
votes
0answers
10 views

Can't get rEFIt to boot after install (Ubuntu + OSX on macbook pro)

I'm trying to dual boot Ubuntu and OSX on my macbook (MacBookPro8,2). As per the usual guide, I downloaded rEFIt (the .dmg) and installed it. Then I rebooted about 12 times and still always just get ...
2
votes
2answers
13 views

Screenshots from multiple Xservers

I want to take screenshots simultaneously from multiple X servers on one desktop. I have multiple users logged in different terminals (tty1, tty2, tty3, tty4) who start multiple Xservers with startx ...
0
votes
2answers
22 views

How to set cron job for system

I'm really new on Linux and have no any previous experience on it. And I opened this account to ask this question. I need to install a cron job I've followed the short guide here. Well, I think it ...
-3
votes
0answers
22 views

Best distro for security researcher [on hold]

I know there are tons of questions like mine but please, bear with me. I am an IT Engineer and my area of interest is IT Security. I have experience with linux(i am no pro but i know my way around). ...
2
votes
1answer
16 views

Running makefile results in “/sbin/modprobe: invalid option — 'l'”

I'm trying to set up Slackware 14.0 on an Asus EEE PC Flare Series Netbook. Currently I'm trying to configure the wifi. When I enter the following: # iwconfig I get: lo no wireless ...
1
vote
0answers
13 views

CentOS 5.6 expand ext4 partition , have steps but parted shows as ext3

I have a Adaptec 5805 HW RAID card with a 6.3 TB RAID-6 array (partitioned via Parted GPT, all of which is formatted as ext4 on CentOS 5.6). I want to expand this to 7.5GB and from reading these are ...
0
votes
1answer
22 views

Reserve memory for a program

Is it at all possible to set aside say 50MB of memory so that in an emergency where something uses all my memory or loads the CPU I could open a terminal, find the offending process, and kill it?
2
votes
0answers
21 views

Wait for a network device to come up before bringing another network device up on boot?

I'm in the middle of setting up my Raspberry Pi running Raspbian as a bridge between my university's wireless network (which requires WPA2-Enterprise authentication) and my private wireless router ...
3
votes
1answer
15 views

How can I determine the page count of djvu documents from the CLI?

Finding the page count of a PDF document from the CLI is as simple as: pdfinfo file.pdf | grep ^Pages: How can the same be performed with a djvu file? Without converting it to a pdf and then ...
1
vote
0answers
9 views

Prevent transparent font on Termite when using Compton

Termite dropped their Opacity-Option, so you have to define a Opacity-Rule in Compton to make the Terminal transparent, and the font is also transparent. How can I change that? Anybody has an Idea? ...
-2
votes
0answers
10 views

real scenario about tc command and mangle table of iptables [on hold]

I don't have any question, But i have a request: I want to learn mangle table of iptables and tc command But i need to a real scenario, Please define me a real scenario!
0
votes
1answer
10 views

LVM + LUKS partition - Is this architecture dependent or independent?

I've been recently dealing with an LVM + LUKS partition trying to install a new linux (ubuntu in this case). I tried a few different options to make it work, but the pc resisted, the only system I ...
2
votes
1answer
21 views

How to compress a TMPFS folder?

I'm looking for a way to compress a tmpfs folder on the fly. I would like to use it for a local cache folder with a lot of data. I know there is a way to use Redis with eg LZF compression, but I ...
0
votes
0answers
23 views

characters stick at the CLI [duplicate]

When I press arrow up to search through the command history, some characters always remain at the beginning of the command line. Does anyone know what's going on ? How can I fix it? for example, I ...
1
vote
3answers
31 views

Suppress warning from ps -aux on Linux

When I run the ps command i get a warning saying Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ. How do i suppress this warning? Is there some system setting that i ...
1
vote
1answer
13 views

dnsmasq no address available?

I am getting this error in my /var/log/messages file. dnsmasq-dhcp[xxxx] DHCPDISCOVER(xxxxxx) xx:xx:xx:xx no address available How can I tell what leases dnsmasq has leased out? And how can I free ...
0
votes
2answers
45 views

change the extension of all files based on user input

I was taking an online assessment and I got the below question. Create a script located at /usr/local/bin/set-file-extensions that will change the extension of all files in the directory ...
1
vote
0answers
20 views

How to setup ssh over USB on an embedded linux device?

I have an embedded linux device with an ARM processor. I am connecting to it over a USB port using minicom. What should I do to "ssh" into the device through the USB connection? I want to setup ...
1
vote
0answers
7 views

pam_tacplus.so and sshd: skip user validation?

I'm trying to implement tacacs authentication on a freebsd box as a client. The box is actually a network appliance that SHOULD have this config built into its cli/ui but doesn't. Since it's built ...
1
vote
0answers
6 views

installing libsocket-perl, apt-get searches for wrong filename extension, gets 404

I've been having trouble installing a package for a number of days now and can't find the solution anywhere, though I have been able to figure out more exactly what's going wrong. It appears that ...
-1
votes
0answers
29 views

unix date difference

i am getting error for this script can any one help for this one #!/bin/bash echo enter first time stamp read d1_1 d1_2 echo enter second time stamp read d2_1 d2_2 secdiff=$(( $(date -d "$d2_1 ...
0
votes
0answers
7 views

Plymouth scrolling text

Is it possible to have it default to scrolling text on boot/shutdown versus the Fedora icon? I know I can get it by hitting various keys, but can I get it to default to text and those messages?
0
votes
1answer
33 views

File not found: Beautiful Soup

I am trying to run a program that I downloaded in Ubuntu latest version, but I continue getting an error everytime I try to run the program. It says: File Not Found: BeautifulSoup So in order to ...
0
votes
0answers
12 views

AWS EMR Bootstrap

I need to write a bootstrap action file for my AWS EMR that runs during provisioning and performs: Install latest R version from: http://cran.us.r-project.org Install ‘lme4’ package (and all of its ...
0
votes
1answer
29 views

how to access with Linux to the real block size info of a filesystem when it is mounted on nfs?

I have a Centos 6.5 and Solaris 5 machines. I'm trying to get the information about block size of a filesystem in the member f_frsize of statvfs. I tried first from Centos but when the filesystem is ...
3
votes
4answers
154 views

Count how many elements in the nth column in a whole file

Input file: A 1,2,3,4 #length($2)=4 B 1,2 #length($2)=2 C 9,8,7,6,5,4 #length($2)=6 Expected output: 12 #4+2+6 A method like: awk -F '[\t,]' '{print length($2)}' but ...

15 30 50 per page