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

learn more… | top users | synonyms (1)

0
votes
1answer
65 views

What's wrong with exit command on my terminal?

I'm using Linux Mint 17.2 Cinnamon, and I'm a beginner, just switched over from Win10. Somehow, the exit command isn't working, could somebody help me out?
-2
votes
1answer
57 views

Error while trying to copy file to many files using cp [closed]

Error when running this command, I think the command is clear to get the idea. cp file.txt /folder/*/*/*/file.txt I found out cp dosen't support *, so how can I do the same thing in bash or ...
0
votes
1answer
43 views

How to install Blender in a version of your choice using the command line?

I have Blender 2.69, this is the version I got when I typed sudo apt-get install Blender in the command line. I do not know if this version is stable, but maybe it is the reason why a part of ...
0
votes
1answer
23 views

How to remove Blender in the command line ?

I tried to remove Blender in the command line , in order to install it anew because of flawed selection in edit mode. So, this is what I typed and the error message I got, I do not understand the ...
3
votes
5answers
175 views

Why is Terminal automatically entering my command after pasting text?

This happens whether I use ctrl+shift+v or paste from the right-click menu. How do I make this behavior stop?
3
votes
0answers
204 views

How to change block device names, e.g. /dev/sdc to /dev/sdb?

Example of why this might be desired: I connect a block device, which shows up as /dev/sdb, and mount it. Later that device gets removed without being unmounted. The block device is reconnected, but ...
-2
votes
3answers
50 views

I only want part of the sentence. Is it posible to cut from the start to the end and only get the output i want?

My file: <TextBlock x:Key="applicationNameSpectrumAnalyzer" Text="Booting Spectrum Analyzer"></TextBlock> <TextBlock x:Key="applicationNamePowerMeter" Text="Booting Power ...
1
vote
1answer
85 views

PS1 from .bashrc overridden somewhere else

I'm trying to use a custom PS1 line, including colors and git repo information, on a Red Hat Enterprise Linux 6 machine. I have a predefined version I'm successfully using on other systems running ...
0
votes
1answer
58 views

Split a set of data to massives and find maximum for each

I have a set of data looking like this: 1 0.1 2 0.23 3 0.05 5 0.73 6 0.40 7 0.34 10 0.11 11 0.45 12 0.68 I need to split the set of data to massives using the rule that the next ...
3
votes
3answers
63 views

How do I cut a string already separated by spaces?

Lets say there's a string like this test="1/2/3 4/5/6 7/8/9/0" They are separated by spaces, as well as '/'. I want to return a result like this by taking the second field of each string segment. ...
0
votes
2answers
48 views

can't delete a file starting with a '-' [duplicate]

i have a file is name -ksh.l.15092015.log to delete this file i do this: rm -rf -ksh.l.15092015.log but i have this error: rm: Not a recognized flag: k Usage: rm [-firRe] [--] ...
0
votes
2answers
139 views

what does 'tc@box:/home$' mean? [closed]

I was wondering what this means? I know that CD stands for change directory does this take me to the home directory, if so what does $ mean?
1
vote
1answer
52 views

How to verify IDEA installation success with CLI on a VM?

I'm using a third party Puppet module to install IntelliJ IDEA, and I'd like to automatically verify that the installation worked. The current solution fails because there is no license: $ make test ...
0
votes
1answer
31 views

Is a “--silent” flag supposed to suppress warnings and errors, or just warnings?

I'm designing a terminal-based application, and I want to implement a --silent flag to suppress noise if they don't want it. In this application, errors are most commonly logged when the application ...
0
votes
2answers
37 views

change permissions to a file and everything inside , recursively

So I want to create an alias called changeAllPermisions that accepts one parameter argument in such a way that when changeAllPermissions argument is called , both Group and Other do not have access to ...
1
vote
1answer
29 views

How to Find, remove and show counter via SSH?

I want to run a command which searches for specific files, then removes them then show how many already is deleted. So far I was using: find -type f -name "*.cache" -exec rm {} \; but when I have ...
0
votes
2answers
71 views

rename multiple directories by adding one character [duplicate]

I have multiple folders named as follow: Name1 Name2 ... Name9 Name10 Name11 ... I need to rename them using mv command into: Name01 Name02 ... Name09 Name10 Name11 ...
-1
votes
4answers
69 views

how to move back from a current directory

Hi if suppose I am curently here: cd Desktop/kinectrobot/src/beginner_tutorials/src and after that working in src i want to move back one directory for example I want to go to beginner_tutorials. ...
0
votes
2answers
102 views

Use multiple commands in sed to insert text after string with special characters

I am having a little trouble trying to do a search and replace using sed in a config file. I want to use multiple commands using the -e option to do the following. Step 1: find the first occurrence ...
0
votes
3answers
59 views

How to search multiple search patterns from a file with grep

If I search for multiple search strings in grep : usually just do: grep "search1\|search2" somefolder/*.txt but, what if I have 100 or more search strings? Can I say like this: grep ...
1
vote
1answer
56 views

umask vs -m, --mode command options

Is there any technical merit/necessity to numerous *nix commands (mkdir, mkfifo, mknod) having a -m (--mode) option? I ask this because near as I can tell, umask (both the shell command and the ...
2
votes
6answers
80 views

checking the largest number of a specific folder

Inside one of my folder I have a lot of files looks like enum-* $ ls PRIM enum-00020 enum-00040 enum-00059 enum-00078 enum-00101 enum-00122 enum-00141 enum-00160 enum-00179 ...
1
vote
2answers
90 views

Print the first and last match of a field with awk

I have a tab delimited file: qrs John tuv abcd Sam efgh ijk Sam lmnp abcd Sam efgh ijk Sam lmnp qrs John tuv I am trying to print the line in which the ...
0
votes
1answer
23 views

Production ready derivative from LFS

I've recently started delving into LFS and have been wondering if there are any popular or well-used distros that have been derived from LFS or BLFS. There are a few of completed projects on Github ...
0
votes
2answers
65 views

What is the command in linux, or a utility to know the current comand status (process status)

For example when I write telnet abc.wtf the telnet session begins saying trying to connect so and so IP, but is there a command that I can type in and know what is the current process happening to ...
0
votes
1answer
44 views

I want to delete from particular words in all the line if that particular word is present

eg: CREATE VIEW AIPKEYITEM.SEASONGROUPNETSALES ( CALENDARID , PRODUCTGROUPID FOR COLUMN PRDGRPID , NETSALESDOLLARS FOR COLUMN NETSA00001 , NETSALESUNITS FOR COLUMN NETSA00002 ) AS SELECT ...
0
votes
3answers
64 views

print last line of !! command

so I want to be able to print helloworld using the !! command. I tried creating a text file with the text helloworld on it. Then I say cat textFileName It prints helloworld. Then I say !! and it ...
5
votes
2answers
2k views

How to set custom resolution using xrandr when the resolution is not available in 'Display Settings'

I'm a new Linux user trying to change the screen resolution as there is no option under display. I have successfully managed to add new resolutions by fluke by following online guide. I don't have a ...
0
votes
2answers
157 views

Linux command to display the contents of a given file byte by byte with the character and its numerical representation displayed for each byte [closed]

I am looking for the Linux command and option combination to display the contents of a given file byte by byte with the character and its numerical representation. I was under the impression that in ...
1
vote
2answers
99 views

Change terminal text color for next command only

So when I find myself compiling a lot (from the terminal) I find it difficult to distinguish between the current compilation results and the old ones, so I was wondering if there is a bit of text that ...
1
vote
3answers
84 views

Deleting all files except folders within directory

I am still pretty new to terminal based commands but while I was doing a rsync command between remote and local, I have accidentally 'copied' the files to the wrong place (Eg. /serA/items) instead of ...
2
votes
2answers
94 views

How can I compare two files and create another file that aren't in first file?

file1 contains: 100 200 300 400 file2 contains: 500 600 700 200 300 Expected output file will be: 500 600 700
1
vote
1answer
73 views

OSX: Delete all matching certificates by command-line

Using shell script to delete all matching certificates. I found a list of certificates using: security find-certificate -c "certificatename" -a -Z|grep SHA-1|awk '{ print $NF }' Output is like ...
2
votes
1answer
101 views

Merge text files with 1st column and difference in output file

File 1: (text1.txt) Row_Added_Ts Count 01/01/14 2022448 02/01/14 8345155 03/01/14 8663852 04/01/14 6785739 05/01/14 5279913 File 2: ...
1
vote
3answers
198 views

Is there a way to undo a terminal command?

I just copied a whole directory into another one using cp ~/local/* ./ and actually wanted to type cp ~/local/srl* ./ so I'm founding myself with a lot of unnecessary files. I can suppress them ...
1
vote
2answers
46 views

Can I pipe clipboard content to browser for viewing?

Here is the situation. I often have to read chunks of information from large plain text files. I am planning to use Readability extension for formating the content to make it readable on screen.
0
votes
2answers
38 views

Wrong zip command messed up my project directory

I've issued a command gzip -r project.zip project/* in projects home directory and I've messed things up; every file in project directory and all other subdirectories have .gz extension. How do I undo ...
0
votes
1answer
31 views

extract subfolders outside and rename if necessary

I have a directory looks like: dhcp-18-189-47-44:CE-06-new-stuctures_backup wenxuanhuang$ ls DFT-00001 DFT-00004 DFT-00007 DFT-00010 DFT-00013 DFT-00016 DFT-00019 DFT-00022 DFT-00025 DFT-00028 ...
1
vote
0answers
48 views

List `yum/dnf` history in ascending (reversed) order

When you run yum history (or dnf history) it will give you the list of action starting from the last, most recent action being on top of the list. In case you have a lot of history steps your recent ...
16
votes
2answers
859 views

What does CTRL+4 (and CTRL+\) do in bash?

I just found out by accident that CTRL + 4 closes programs reading stdin input from the command-line. This is how it looks when I type CTRL + 4 or CTRL + / into programs reading stdin ryvnf:~$ ...
1
vote
2answers
160 views

How to use ln -s to create a command line shortcut?

I have an sh file that I would like to be able to open from the terminal at any time. I would like to type "studio" into the terminal, and have android studio open I recall using ln -s to do this, ...
1
vote
3answers
70 views

Command line to go in directory passed by which command

I want use a command such as this : which node && cd $_ to jump in the directory when the binary file reside, but the which command return all the path + name of binary ,so i get an error ...
0
votes
1answer
105 views

How to find what the “Mate version” of programs are called

On Mate systems, many programs correspond to (and are sometimes forks of) other programs with more well-known names: nautilus -> caja gnome-terminal -> mate-terminal ark -> engrampa gedit -> pluma ...
1
vote
2answers
179 views

What command should I use to move these particular elements?

Here is my initial situation: In a folder named for example Father, are stored some files in the following way: Father contains 24 children folders (let's call them Child1, Child2, ...), and each one ...
2
votes
2answers
326 views

adding column in CSV file using awk

I need to a add a column in CSV file from an array using awk. For example, input.csv a,10 b,11 array = (100 200) output.csv should look like a,10,100 b,11,200 I tried this command but it does ...
1
vote
2answers
65 views

linux terminal transfer control to new terminal [closed]

in one of my shell program, I want start an xterm window from terminal and then the control of next execution should go to the newly opened window (by default the control will be in the terminal). ...
0
votes
1answer
45 views

How to run bunch of hierarchical dummy shell processes (process of another process, etc.)?

I would like to run multiple processes where each process is running another one, so it will create a long process branch. I've tried: $ bash -c '(bash -c "sleep 20"); sleep 20' & $ pstree ...
0
votes
1answer
248 views

SED - Find and replace with special characters (#, , % )

I'm aware that this is a really simple question, but I'm struggling to find a solution to this . I need to automatically find and replace in the /etc/aliases file the following section: # Person ...
3
votes
3answers
107 views

Find a pattern and insert # at the beginning of 2 line befoe that and 1 line after that

I have a big file (more than 2000 lines). Where i have to insert a # at the beginning of 2 above lines and at the beginning of 1 below line after finding a pattern. Also insert # at the beginning of ...
5
votes
3answers
138 views

Retreat from deleted directory

Suppose I am editing some files. I have (say) a terminal open and a gui file manager. I am currently in /my/very/long/and/winding/directory/path in the terminal. In my gui, I delete ...