The command-line is the interactive interface to your shell.

learn more… | top users | synonyms (1)

1
vote
2answers
84 views

How do I use a temporary environment variable in a bash for loop?

I want to run YII_ENV=prod yii kw/test ten times. I tried $ YII_ENV=prod for x in 1..10 do; yii kw/test done; -bash: for: command not found 1304682651 (Seemed to run once.) I also tried $ for x in ...
-2
votes
1answer
81 views

How to use grep and cut paste to extract information by feature type in UNIX [closed]

I have this assignment that is supposed to be challenging. I have been stuck on it for about 20 hours. I would like help as I am confused in how to get the information that my professor wants. ...
1
vote
1answer
94 views

Write PDF metadata from the file name using Exiftool or PDFtk

I have thousands of PDF files named in the format Author Year Title of the book The first two spaces are relevant: they make a break between the Author, the year and the title. The title could ...
3
votes
3answers
141 views

Search a directory recursively for files listed in a csv, and copy them to another location

I have a directory (let's call it "Movies") which contains many files and folders. I have a long list of file names in a .csv file (around 4000 entries) which refer to files which are located ...
2
votes
3answers
134 views

Execute command on multiple files matching a pattern in parallel

Let's say I have a command accepting a single argument which is a file path: mycommand myfile.txt Now I want to execute this command over multiple files in parallel, more specifically, file ...
0
votes
2answers
36 views

how to create table with fields in command line Centos

How do I do this in command line? Below is code i saw imported to PhpmyAdmin but i don't use any interface... CREATE TABLE IF NOT EXISTS `products` ( `id` int(11) NOT NULL AUTO_INCREMENT, ...
0
votes
0answers
62 views

How to set torify + whois work correctly?

i'm using manjaro. I'm trying to use: torify whois, torsocks whois, proxychais whois. I tried to do that with sudo command, and all this command give me back the same output: [Feb 23 21:15:57] PERROR ...
3
votes
2answers
54 views

How to copy modified files while preserving folder structure

I have made many changes to files in my PHP project and I want to push those changes to our server via FileZilla FTP. Rather than push all of the files, I would like to find only the files that have ...
14
votes
2answers
2k views

Why doesn't the Enter key send EOL?

Unix / Linux EOL is LF, linefeed, ASCII 10, escape sequence \n. Here's a Python snippet to get exactly one keypress: import sys, tty, termios fd = sys.stdin.fileno() old_settings = ...
3
votes
2answers
36 views

Play command problem error

I have a shell script in my /bin directory that has a line in it:play applause.mp3. The file applause.mp3 is colocated in the same directory as the executable. Yet the play command gives me the error ...
0
votes
2answers
94 views

Bash syntax error when `cd`ing into directory

**So, after doing a little digging, I got it to work. You do get far enough in the install using WINE for this to work properly. Here are the steps: Open the shell, and type in cd .wine ...
0
votes
0answers
33 views

UNIX pipe for grep command [duplicate]

I read everything in UNIX is works through I/O piping. Below command is not working and giving unexpected results . service --status-all | grep '+' Well I started reading Unix very recently. 1) ...
1
vote
2answers
42 views

sed remove Space

i have list name.txt with this string : Los Angeles, CA us1.vpn.goldenfrog.com Washington, DC us2.vpn.goldenfrog.com Austin, TX us3.vpn.goldenfrog.com Miami, FL us4.vpn.goldenfrog.com New York ...
0
votes
3answers
87 views

How to stop a user from seeing command line arguments?

We have a CI server application run as the build user. Any command with arguments run by the CI server is visible via ps. Although non-admin users do not have access to load a shell on the CI server, ...
1
vote
0answers
45 views

What is the command for connecting to WiFi from the command line? [closed]

What is an easy way to connect to a secured network from the command line in Arch Linux(without an X server)? I am looking for a command, or a sequence of commands that will allow me to connect to ...
1
vote
1answer
18 views

Return permission in number form of file/ directory [duplicate]

Is there a way to return the file permissions in the format in which they are modified using chmod? For example chmod 755 thisdir then commandx thisdir Would return 755, where commandx is ...
0
votes
1answer
61 views

How can I succesfully call the execv function? [closed]

I am trying to make a program that will copy file1 into file2 the following way: cp -i -p file1 file2 Now I call my executable copy and so by calling copy file1 file2 It will do the same thing ...
0
votes
1answer
41 views

Makefile:434: *** mixed implicit and normal rules. Stop

Am using Fedora and tried to install L7-filter on linux-2.6.26 kernel. One of the steps is to run {# make menuconfig} but am getting this error Makefile:434: *** mixed implicit and normal rules. ...
0
votes
1answer
229 views

Why the “v” in mkfs.vfat?

I read in an Internet article to format a partition to FAT32 with the following command: sudo mkfs.vfat -F 32 /dev/sdXn Now I read the man page for mkfs.vfat and it shows mkfs.fat as the name of the ...
1
vote
0answers
29 views

ncurses subversion repository browser

Does anyone have a smooth repository browser they can use on the command line? I'm finding the svn ls command to be a bit tedious. I've considered using a CLI browswer such as elinks to brows the html ...
0
votes
0answers
54 views

avconv output_volume option - trying to understand the man page

I'm trying to increase the volume of my input .wav file by means of the output_volume option within the avconv command. I would like to increase the volume by 6 dBs similarly as demonstrated in the ...
1
vote
2answers
33 views

CLI command to capture region with delay?

Of all screen-shot tools that I have seen in Linux, the KDE one (ksnampshot) looks the most powerful. ksnapshot --region is a command that I can associate with a shortcut to capture a selected region ...
2
votes
1answer
26 views

Is it possible to send an xpdf process a signal that causes it to reload the file being displayed?

On page change, redraw, or Reload command, xpdf will reload the file it is currently displaying. Is it possible to cause xpdf to reload the file by sending a signal? Which signal? (I am basically ...
3
votes
3answers
84 views

How to improve bash scripting from 1 long line to a better method?

I have a script that open up terminal and open up 5 tabs, execute a certain command, and go to a certain working directory. #!/bin/sh gnome-terminal --tab --title="Zookeeper" --profile Hold -e "sh ...
-1
votes
1answer
60 views

Can't set my shell as fish shell due to error when using chsh due to lock file [closed]

My problem: I cannot set my default shell for user 'student' on CentOS 7 to fish-shell. I installed fish-shell by downloading the .gz, configuring, make, make install. output of which fish ...
3
votes
1answer
34 views

Comparing ping times in FreeBSD sh

How can I strip the time from a ping return? For example: 64 bytes from 10.3.0.1: icmp_seq=0 ttl=63 time=2.610 ms I want to grab the value after time= and pass it to a test like: if time>=50.0; ...
0
votes
1answer
41 views

CLI command to start playing inserted DVD in VLC?

I want to add this command into a launcher on the panel or desktop so that I can start the inserted DVD with a single click. I would prefer this to selecting one of the many options my KDE panel ...
1
vote
3answers
274 views

Putting a network interface up/down from command line

In Xubuntu 14.04, I tried to use both ip and ifconfig to handle a network interface, but they gave the same result. $ sudo ifconfig wlan0 down $ sudo ip link set wlan0 down both correcly put down ...
1
vote
1answer
42 views

Why “grep -q -v” only works with single line input?

If I use grep -q in combination with -v to return 0 if there are no matches or 1 if there is a match, it works as long as input is a single line: $ echo 'abc' | grep -q -v a; echo $? 1 $ echo 'abc' | ...
3
votes
5answers
2k views

What does pwd output?

Does the command pwd in a shell script output the directory the shell script is in?
13
votes
4answers
915 views

How to send output from one terminal to another without making any new pipe or file

I am just fooling around on my terminal (Gnome terminal). I was wondering is there a way to send output of one terminal to another without having to make a new file or pipe. for example: on first ...
1
vote
0answers
118 views

Barebone Linux Bluetooth pairing

I have a small embedded ARM box, without any KVM, just a serial console, Net and a Bluetooth USB dongle. System is autocompiled using Buildroot framework and reasonably working. I can access the box ...
3
votes
1answer
116 views

What Command Line tools to connect from Unix to remote Windows?

I need to make some scripts for connecting from a Unix server to several Windows stations for automating file transfers. GUI is not needed and I can't install any additional software into Windows ...
0
votes
2answers
57 views

Linux command clarification

ls -l | grep -v '^d' | sort -g -r -k 5 | head -2: I used this command to write into a text file. I've researched a bit online and I think these commands mean this: grep: a search that searches for ...
0
votes
1answer
51 views

Solaris: Spooling filesystem is full

I have a Solaris 5.8 machine that will no longer print. print job that come from the terminal say: "See if spooling file system is full" I had a look around /var/spool but it isn’t particularly ...
0
votes
1answer
59 views

Give the command to remove duplicate lines in a .txt file and save the new file as new.txt file

I'm trying to do this but I cant create the file. I enter: sort myfile.txt uniq -u | tee newfile.txt and It wont create the file automatically. What am I missing here?
3
votes
2answers
397 views

What is the purpose of the grub command line

In the grub bootloader if you press esc it will take you to a command line interface that looks like grub> _ What is this promt used for? It doesn't look like it's connected to Linux. Is it a ...
0
votes
1answer
139 views

Read columns from file into separate variables

I need to read the following input into separate columns as variables? input.txt b73_chr10 w22_chr9 w22_chr7 w22_chr10 w22_chr8 w22_chr6 I have written the following command;but I guess it ...
-1
votes
1answer
53 views

Linux file create time [duplicate]

Hi I am new to Linux and I am searching a command that gives me the file create time in a folder. Thanks in advance
0
votes
0answers
24 views

embedded linux- to check uart in raspberry pi

Checking whether the Pi is sending and receiving UART data by installing the tool Minicom. Pi is sending serial data but is not receiving data. Whatever I type in Pi minicom is received to PC ...
0
votes
1answer
52 views

How to Move Large Number of Files to Original Directories?

I accidentally ran a command that moved the contents of all the subdirectories in my home folder to my home folder. Should I call it a loss and reinstall my system, or is there some command(s) I can ...
2
votes
1answer
86 views

Open multiple pdfs in Okular from command line

I have Okular configured that when it's already running and I open a pdf from the command line, it should open the new file as a new tab in Okular. However, if this new file is in another directory ...
4
votes
3answers
232 views

How do you extract a whole word containing substring?

If I have a file that looks like this: example.png example.jpg example2.jpg example2.png example.swf example2.swf example3.jpg example4.jpg example3.png example3.swf and I want to extract the ...
3
votes
3answers
73 views

Can the Bash shell “Ignore” Excess copy-paste text?

Say, I have a "Quick&Dirty" Perl script in a gui text editor, and I start the Perl interpreter in a terminal window which is running Bash. I can copy-paste the Perl script to the terminal & ...
0
votes
3answers
64 views

How to loop through a file and make each line a new regular expression into an awk statement?

FileA.txt: ATGCATGC GGGGGGTT TTTTT AAAA FileB.txt: asdfasdf blah2 ATGCATGC blah3 blah4 delte-me-too GGGGGGTT blah5 blah5 .... I want to compare the each line from FileA.txt and check if it ...
3
votes
2answers
38 views

How do I transfer (to a usb drive) or read a .odt file in the command-line?

Currently my computer is not allowing me to start it up properly (guessing my hard drive is malfunctional), but I've figured out that Ctrl+Alt+(F1,F2,F3,F4,F5,F6,OR F7) allows me to access ...
32
votes
1answer
1k views

ESC + { : What is it and where I can know more about it?

I was play around at the bash prompt, and pressed ESC followed by { , after which , the shell showed all the files for completion, in a fileglob string. Eg : If I had typed bash C followed by ESC+{ , ...
1
vote
1answer
111 views

Linux yum Commands that are Equivalent to these Ubuntu apt-get Commands [closed]

I'm using an AWS EC2 instance and I'm trying to switch from an Ubuntu instance to a Linux (Amazon Linux AMI) instance and in doing so I need to figure out the equivalent apt-get to yum commands and ...
0
votes
0answers
44 views

augtool saving failed

I am trying to set some parameter using augtool but getting strange error Linux$ sudo augtool set /files/etc/abrt/abrt-action-save-package-data.conf/OpenGPGCheck no error: Failed to execute command ...
1
vote
0answers
11 views

How can I change the password of a LVM setup in Fedora?

Using CLI, how can I change the password of a LUKS/LVM setup in Fedora (2x), where x can be 1,2, or 3? Note: The physical LVM2 volume spans over two partitions on two drives (/dev/sda3 and ...