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

learn more… | top users | synonyms (1)

0
votes
0answers
8 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
12 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
41 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 ...
0
votes
0answers
39 views

How and why is linux well known and important in the hacking and information technology world? [on hold]

Now in the computer world you always hear of linux and to become a computer pro it is expected you have to learn linux. But why and how did linux become so popular in the hacking community? I came ...
-1
votes
1answer
18 views

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

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 ...
-1
votes
0answers
8 views

moving directory using relative-to-home pathname [duplicate]

sample_dir1 -- sample_dir |-- admin |-- cambridge | |-- cafeteria |-- library |-- faculty |-- history.exe |-- markham | |-- annex | |-- annex2 | |-- ...
1
vote
1answer
14 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; ...
-4
votes
1answer
28 views

How do I copy a directory into its own subdirectory? [on hold]

For example: sample_dir1 has a sub-directory sample_dir. I want to move sample_dir1 to sample_dir, how would I do that? sample_dir1 `-- sample_dir |-- admin |-- cambridge | |-- ...
0
votes
0answers
21 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
2answers
44 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
28 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?
9
votes
4answers
637 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
14 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
2answers
46 views

How to achieve using ls command [on hold]

I have two files in a directory: abc_160101.txt and abc_a_160101.txt. How to list the first file only with ls command using abc_* or other pattern?
2
votes
1answer
53 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
49 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
38 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
27 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
344 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
36 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
29 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
12 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
37 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 ...
1
vote
1answer
23 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
160 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
39 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
39 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
29 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 ...
31
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
27 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
32 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 ...
0
votes
0answers
6 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 ...
0
votes
1answer
41 views

Split string into array and print each element on a new line with commandline

I'm having a String which is seperated by commas like a,b,c,d,e,f that I want to split into an array with the comma as seperator. Then I want to print each element on a new line. The problem I'm ...
0
votes
0answers
18 views

How to execute shell script in remote windows machine [duplicate]

I have a shell script which will be useful to download the jars from ftp and copy it in a particular location and do some deployment stuffs.. I need to run the script in remote Linux and windows ...
0
votes
4answers
58 views

grep match multiple substrings and pass or fail on missing

I have a nginx -V 2>&1 | \ grep -qi 'nginx/1.9.10\|ngx_pagespeed-release-1.9.32.10\|openssl-1.0.2f\|modsecurity-2.9.‌​0' \ && echo "has the stuff we need" \ || echo "missing ...
1
vote
4answers
97 views

What command would I use to find out how much total space my hard drive has left?

What's a single command I can run that shows me the total amount of space free on a hard drive? I don't want to do any math, I just want a command that shows me the total free space on my hard drive.
-1
votes
2answers
57 views

GUI gone after apt-get upgrade on clean install, Ubuntu Wily-

I was pointed here from AskUbuntu because my question was about an unsupported Ubuntu derivate, here is the copy-pasted question: I upgraded my fresh install of Netrunner 17 Horizon (Ubuntu-based, ...
0
votes
1answer
17 views

Possible to prevent multitail from closing “finished” command windows?

Assume a multitail call like the following: multitail -s 2 -l "long-running-command" -l "short-running-command" Now, I would like to have both windows remain open, even after they are finished. ...
0
votes
0answers
28 views

How can get the screen command to work properly?

I'm trying to work out how to use the Unix screen command. I'm using Zsh on Mac OS 10.11.3. So far, nothing is working as described. (I don't have enough reputation to link to the tutorial I'm ...
0
votes
1answer
35 views

How do I execute command to avoid interference from the shell [duplicate]

Sometimes a same command is provided by shell-builtin as well as other file/package. Example: $ type -a printf kill printf is a shell builtin printf is /usr/bin/printf kill is a shell builtin kill is ...
0
votes
1answer
19 views

get command line agrument by variable in shell script

I want to get the arg of a command from a var that has the index in it of the arg that I want. Something like this # command in terminal, `foo -r -f value_wanted` index="3" var=$"$index" echo $var ...
0
votes
2answers
95 views

What does this command mean?

lines=$(grep '^[^:]\+::' /etc /shadow) What does this whole command mean? What does '^[^:]\+::' mean? if I put if else statement like: if [ "$lines" == "" ]; then Will it display (which is ...
0
votes
1answer
16 views

umask permissions that result in no change

I am having a really hard time understanding how umask works. How is something that is 666 masked with 001 still 666 ?
1
vote
1answer
26 views

Using terminal to reset icon cache - which method?

I've been trying to find out how to reset the icon cache on my MacBook, and two methods seem to always be suggested. However, the two approaches differ slightly in the third line. Method 1 sudo find ...
3
votes
2answers
101 views

The discrimination between short and long option is only `-`?

On Unix system, options begin with - is short option, while options begin with -- is long option. Is my understanding right?
-2
votes
1answer
34 views

What does the -p option do exactly with the cp command?

So I am trying to understand what is the significance of the -p option for the cp command. I opened the manual of the cp command and it says -p same as --preserve=mode,ownership,time stamps. But ...
0
votes
2answers
25 views

usermod question about option e

after reading the man pages I am unable to find an explanation of what this does (the tack e option) usermod -L -e 1 username -e 1 does this mean one day after the linux epoch, jan 1 1970? How ...
3
votes
2answers
197 views

How to write contents of a file to new file removing repeated lines [duplicate]

For example, a file file1.txt contains Hi how are you hello today is monday hello I am fine Hi how are you After the processing of file1.txt it should write to file2.txt and contents ...
1
vote
2answers
47 views

How do I remove text blocks within a log file? [closed]

I have the following log: 2016/01/20 00:00:16.035 [T114BaseServlet] ... Blah Blah Blah 2016/01/20 00:00:16.036 [ApplicationState] ... Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah ...