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

learn more… | top users | synonyms (1)

13
votes
4answers
702 views

Monitor hard disk activity

In a Ubuntu 14.04 server I am experiencing a massive hard disk activity which has no apparent justification: it comes as a burst, it lasts a few minutes and then disappears. It consumes system ...
0
votes
1answer
28 views

ssh alias with localhost forwarding

Does anyone know what the best way is to create an ssh alias with a localhost argument? Everything I've searched for only includes host, hostname, etc. Such as: Host example2 Hostname example.com ...
1
vote
0answers
30 views

Generating 'ASCII-art' banners with arrows

I recently discovered figlet which generates ASCII-art banners. Joy! ... but, alas, I want a banner with an arrow on it. Now... $ figlet unicode → arrow _ _ //\ ...
3
votes
2answers
430 views

Alternate solution for making multiple copies of a single file using command line?

I am trying to copy a file to 10 files. Say for example I have a E-mail message named test1.eml. I want 10 copies of the same file. When I searched in internet, I came across this stackoverflow ...
0
votes
0answers
16 views

Suppressing fuse-ext2 command-line output

Does anyone know of a way to suppress the command-line output of fuse-ext2? fuse-ext2: version:'0.0.7', fuse_version:'27' [main (../../fuse-ext2/fuse-ext2.c:324)] fuse-ext2: enter [do_probe ...
1
vote
2answers
76 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
71 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
78 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
111 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
123 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
34 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
44 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
44 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
33 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
86 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
79 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
43 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
17 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
40 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
33 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
132 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
28 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
39 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
23 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
79 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
48 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
32 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
37 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
185 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
41 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
870 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
92 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
86 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
46 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
43 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
385 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
85 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
47 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
21 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
50 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
71 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
200 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
59 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
59 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 ...