A shell is software that lets users interact with the operating system, usually by typing at a command-line.

learn more… | top users | synonyms

1
vote
1answer
40 views

Difference between ampersand (&) before or after command arguments

I am a Windows user and I am using Cygwin as my terminal. In order to run notepad++ from terminal I have added this lines to ~/.bash_profile: npp () { /cygdrive/d/Notepad++/notepad++.exe $(...
0
votes
1answer
54 views

arithmetic operation on a nested column in a tab delimited file

I have a tab-delimited text file containing Column1...Columnn columns and R1 to Rn rows. Within some of the columns, there are multiple nested fields with an identifier and then separated by semicolon ...
0
votes
2answers
67 views

simple arithmetic operations on a tab-delimited text file in shell script

I have a tab-delimited text file containing C1...Cn columns and R1 to Rn rows. Column 10 (C10) has a field 'X'=four comma separated integer values (X=a,b,c,d). I would like do a small arithmetic ...
0
votes
1answer
123 views

Why can't I load an EFI shell anywhere?

So I recently found out I had EFI instead of BIOS and went to experiment with different .efi programs to see which one I would want for full functionality. From 3 bootloaders I have used, I get the ...
2
votes
1answer
31 views

Why does this simple shell loop stall and start consuming massive amounts of memory?

A friend of mine known for inhumane treatment of machines wanted to stress their CPU, and so wrote a one-liner like this: for z in {1..100000000};do num1=$(($z * $z)) && echo $num1;done ...
1
vote
0answers
46 views

Colon(:) operator in Unix shell

As far as colon is concerned i understand that is is used in certain situations as a null and as a parameter of expansion for substring, but can someone explain me this: do_qc: $(STAGE1_OUT_FILES) ...
2
votes
2answers
124 views

Add abbreviations in fish config

I would like to use the abbreviations feature of the fish shell, especially for the known bash variable !! or aliases to common git commands. I know that abbreviations can be added like in the ...
1
vote
2answers
29 views

What is % in Unix Shell

I am currently looking at a shell script which makes use of '%' sign. %.gtf.checked: %.gtf irap_check_gtf $(gtf_file_abspath) && touch $@ I am not being able to understand the use of '%'...
1
vote
0answers
39 views

inotify does run twice

I wanted to write a script that triggers some code when a file gets changed (meaning the content changes or the file gets overwritten by file with the same name) in a specific directory (or in a ...
1
vote
2answers
80 views

I cant ssh into intel content access point from macbook terminal

I am trying to ssh into the intel content access point with ubuntu 12.4 installed on it from my macbook air, but i get the following errors: ssh: connect to host 192.168.88.1:22 port 22: Operation ...
0
votes
1answer
37 views

Passing unix shell (optional) text parameter without expansion

I want to write a unix/linux script updategit.sh with a default parameter to commit to git. updategit.sh should be POSIX compatible. I hope POSIX will solves some of worst incompatibilities of the ...
1
vote
1answer
58 views

How do I sort files by date in filename?

I have a set of filenames like this vorlesung 02.11.15.mp4 vorlesung 04.01.16.mp4 vorlesung 07.12.15.mp4 vorlesung 09.11.15.mp4 vorlesung 09.12.15.mp4 ... The last part of the file name is a date ...
3
votes
2answers
43 views

Linux Shell - Display system information in upper part of the screen

out of curiosity: Is there a way to display system information in the upper third of a linux shell that stays there and updates automatically? In my humble understanding this would maybe require ...
2
votes
0answers
46 views

Color coded 'ls' under ssh connection from Mac to SunOS server (tcsh shell)

I'm on a Mac under OSX. I ssh into a remote server which is running SunOS. The default shell under the remote server is tcsh, not bash. How can I set the ls to generate color coded output as I have ...
1
vote
1answer
81 views

Linux tar files within specific date range using filename date

I have files whose names begin with YYYYMMDD like the following: 20160221_143223_Report.csv 20160222_121223_Report.csv ... 20160229_141223_Report.csv 20160301_171223_Report.csv I want to ...
0
votes
0answers
20 views

Add an option to windows context menu (shell)

Some time ago Windows shell menu displayed an option "Edit in Adobe Dreamweaver" for some files extensions, like .html for example. I had removed Adobe CS5 from my PC to try the Adobe Creative Cloud, ...
54
votes
6answers
4k views

What is a simple way to let a command run for 5 minutes? [duplicate]

Is there an easy way to let a specific command (only terminable through Ctrl-C) run for 5 minutes automatically? For example: minute-command 5-minutes ping www.google.com or any other command that ...
0
votes
2answers
24 views

why do strings print differently in python shell then interpreter window?

new to programming and i am reading through a a couple intro to programming concepts using python books, and i am seeing a contradiction between the texts and what i am seeing in my python document. ...
-1
votes
1answer
31 views

drop database via bash with dash in database-name

I have a variable in a script with the list of folder names with dash in their names DBDIR="some directory" dbdash=`ls -l $DBDIR | egrep '^d' | grep '.-.' | awk '{print $9}'` And I want to drop ...
0
votes
1answer
31 views

basename command is outputting an 'enter' character along with the file name

I'am reading a text file line by line using while loop whose contents are directories and file names. I read the file names using basename command. I want to check if that file exists in a directory. ...
0
votes
2answers
39 views

Shell Script output indentation

I want to call a shell-script / application inside another script. Every line of the contained script should be indented by 2 spaces. Is this possible? The output should look something like this. I'...
6
votes
2answers
3k views

Why am I having / how can I fix this error: “shell_session_update: command not found”

Background I am getting into Ruby 2.x, and Rails 4.x, on a MacBook using OS X El Capitan (10.11.3), using the fish shell, employing the integration listed on this page: RVM - Fish Shell (Integration) ...
0
votes
0answers
57 views

EFI Shell: Volume is not mapped to filesystem

I got a MSI gaming 3 mainboard, SanDisk SSD 256GiB, Seagate HDD 1TB the mainboard automatically installed the efi shell v2.31 on my hdd /dev/sda1 after installing windows on the ssd and fedora on ...
4
votes
3answers
49 views

Periodically source shell profile

I'm a zsh user, but this should apply to any shell in theory. When I edit my .zshrc to add a new alias, I have to source ~/.zshrc in all of my open terminal tabs/windows to be able to use the new ...
0
votes
1answer
56 views

Automating Dialog

How can I, via a shell script, automate the dialog utility. For example: I want to be able to select the name I want. The dialog has no hot keys, so I need to be able to "read" the word under the ...
0
votes
0answers
29 views

aptitude's %t format option doesn't show archives of installed pkgs - why (bug)?

According to the aptitude user's manual (Section "Customizing how packages are displayed"), %t in a format string will display "the archive in which the package is found". Therefore, when I enter -- $...
1
vote
2answers
225 views

Run a shell script in background in Unix at specific time daily

I have a shell script task.sh that is needed to be run in background in Unix at specific time daily. I know nohup is useful to run the script in background. But worrying about how to schedule this ...
1
vote
1answer
56 views

Using shell (bash) to determine key for value from file

I am scripting some application deployment and deploy promotion processes using bash (shell). These scripts are being written as a failsafe in case our CI platform ever fails again (as it has recently)...
1
vote
1answer
67 views

Changing sh color in .bashrc

I'm trying to change the color of my shell which I connect to using Putty. When I type this export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h:\w\$ ' I get exactly what I want. ...
3
votes
1answer
44 views

Script SSH Interactive Console that needs escaped chars

I would like to modify my existing SSH connection via a shell script. So if I run an existing script remotely I would like it to open a new port to be tunnelled. Interactively I can do this via: ...
0
votes
1answer
124 views

Batch for execute Putty, log on Server and run commands with shell script or txt [duplicate]

I need help for this process. I have a batch file to run Putty and log with ssh an server and will execute commands from file "commands.txt". C:\Programme\PuTTy\putty.exe -ssh user@server -pw 123456 ...
1
vote
1answer
32 views

files dissapear when I run mv command

I use the below command to move files: mv *.gz directoryname but directory name has spell mistake and the file with directory name has been generated with unknown format. And I lost my file. How ...
0
votes
1answer
25 views

Duration time between cycles in a log file

My apologies if this is too basic, but I have a log with this kind of information: Mai 5 12:34:00 xoengine XO[1287]: [Xo|xoengineMain.cpp:122|0xb88ec60] starting xoengine 4.0.1.2 (x86) from [/usr/...
2
votes
1answer
313 views

Execute commands using sudo in remote server after logging into PuTTY through batch file

I need to login into remote server daily and perform same set of tasks. I am using Windows platform and the remote server is Unix. I use PuTTY to login to remote server. To reduce the manual work, I ...
1
vote
1answer
92 views

How to change shell to custom shell?

So, I have made a little shell script in PHP with some basics functions (ls, cat, etc..) and I'd like to use it as my default shell. But since I don't want to do a mistake, I have some questions: If ...
0
votes
2answers
38 views

How to pass parameter in linux command at the end of the line

I would like to pass a parameter at the end of the line while I am giving a command in terminal. So I would like something like the example below find /path/to/directory -type f -exec grep -irl "...
0
votes
0answers
54 views

Vagrant shell provisioner does not respond

I am provisioning a VM through shell script in AWS using vagrant-aws plugin. VM gets launched and the shell script gets executed but I don't see any update on the shell prompt. It used to get updated ...
0
votes
1answer
49 views

Cannot execute ssh-ed osascript properly inside of shell script

I have created a ip-down script in my etc/ppp/ directory. Essentially I am trying to kill certain programs/servers when the VPN disconnects, then display a notification on another computer via ssh. I ...
0
votes
1answer
54 views

Can I install anything on this limited system?

My modem has a telnet port and when I login to that port I get a root shell in device. The commands are very limited but there is empty space in device. Can I install something like nmap to this ...
0
votes
1answer
51 views

Why doesn't cronjob execute feh command

I build a cronjob to download a new picture from a source every ten minutes and set it as wallpaper using feh. The file is downloaded but the wallpaper doesn't change. Where is the problem? crontab -e ...
-1
votes
1answer
48 views

How do you display the Settings window in Windows 10 when Explorer is not the Shell?

Using a Windows Shell replacement to Explorer in Windows 7 has worked well. Moving our Shell to Windows 10 is also working, but with a few unwanted side effects, including the fact that I cannot ...
0
votes
1answer
59 views

How can I tell bash top stop echoing text whenever I press any key?

I'm writing a custom startup command for gnome-terminal, and my intention is to display a welcome message every time I launch it. The message displays correctly, I coded it in order to make the ...
1
vote
2answers
39 views

Equivalent of `$@` for windows shell

I use batch files to create wrappers around some commands which need extra argument to work. For example, I have a file pip.cmd which adds a custom proxy argument to all pip calls: pip.exe --proxy="...
-1
votes
3answers
20 views

How to use the command “read” on a Shell script which reads its arguments from stdin

First of all, thank you for your help in advance and sorry in case this was answered before. I have not been able to find it. For helping to understand my question, I have written the following ...
1
vote
2answers
31 views

Import previous commands to edited command

I'm playing with zsh to change image modification time according to the 'Date/Time Original' exif attribute. For this I one command I do: PDATE=$(exiftool -p '$DateTimeOriginal' $PIC | sed 's/[: ]//...
0
votes
2answers
81 views

bashrc alias ls not working

I'm trying to modify the ls command with an alias in my .bashrc file, and I'm getting some strange errors. .bashrc file export http_proxy="Some URL" export https_proxy=$http_proxy alias ls='ls ...
1
vote
1answer
61 views

Run shell and check port of specific postgresql version in ubuntu

Several versions of postgresql (9.3, 9.4 and 9.5) on a server with different ports and I want to start the shell of a specific one. If I run the shell: psql It returns: psql (9.5.0, server 9.3.10) ...
0
votes
0answers
14 views

Activate tablet Volume buttons when when explorer.exe not running

we are developing a Win 8.1 tablet desktop application in LabView, running in a Kiosk-like mode. I know Windows 8.1 offers the Kiosk mode for this, but only for Windows store apps. I changed Shell ...
1
vote
0answers
30 views

How to stop output from AT command in a shell line

I have this issue. I try to get output from AT command from my modem, using Linux. I get the output, but I don't know how to stop the output. The line is some like this: echo -e 'AT+CGMI' > /dev/...
1
vote
2answers
118 views

What is the maximum value of a numeric bash shell variable?

I'm curious as to what happens when a numeric variable in bash is incremented up without purposely stopping it. How large can the number get? Will it overflow and become negative and just continue to ...