Questions tagged as 'terminal'

2
answers

Starting GIT by Terminal

I'm trying to give git init through the terminal and when I type this command it accuses that the 'config' and '.git' folder already exist, etc. Also when I try to use git add * it takes time to add the file, now I do not know if it's because of...
asked by 25.06.2014 / 00:21
1
answer

Show contents of a file by opening the file with the content string of a variable

I have a problem to show the contents of a file using the following command: variavel="Affonso\,\ I.\ P..txt" cat < "$variavel" And running the same command on the terminal but without using a variable, it usually works like the followin...
asked by 29.07.2016 / 15:57
3
answers

How to execute the method inside a .py file by the terminal linux

How can I call a method that is inside a .py file directly from the Linux terminal, but I do not want to enter the prompt of the python For example [fedora@user ~]$ python arquivo.py metodo parametro Something like% Django / P...
asked by 15.08.2017 / 22:42
1
answer

Execute console command and read return in PHP

In linux if I do the command df -h in the terminal it returns me the partitions, size etc ... as I show below: Filesystem Size Used Avail Use% Mounted on /dev/sda3 25G 6.4G 17G 28% / /dev/sda5 70G 2.9G 64G 5...
asked by 28.10.2016 / 12:24
2
answers

Merge linux commands - rm and diff

I'm learning how to use Linux with the OpenSuse IDE version 13.1. I would like to know if it is possible to merge the commands rm -r with diff - r ? Objective Remove files 1.txt , 2.txt , 2.txt from pa...
asked by 22.05.2015 / 01:12
3
answers

Getting Terminal History Output on Ubuntu

Is there any way to get Output History from the Ubuntu terminal? As a log of everything that rolled into a terminal?     
asked by 03.09.2014 / 23:07
1
answer

How to pass arguments to a PHP script via command line?

I have a PHP script that takes arguments as follows: script.php -f "valor" . How do I get PHP to pass this argument via the command line?
asked by 26.03.2014 / 14:25
3
answers

How to show the file path opened in VIM

Sometimes I leave the file open for a long time, and I do not know which directory it is in, because the environment of my application is separated by path. Ex: prod /loja/prod/app/index.php teste /loja/teste/app/index.php I wanted to s...
asked by 04.10.2014 / 00:15
2
answers

Convert File Names To Alphabet Letters

Convert File Names To Alphabet Letters For example , I have several image / photo files in a directory, and I want to pass these long names of their images into names designated by the letters of the alphabet Before IMG01-03082016.j...
asked by 21.08.2016 / 17:29
2
answers

Error in using aliases and read in ShellScript

I'm trying to create a command in the .bashrc of ubuntu, however I'm having a problem, I'm trying to create a folder with the variable entered at the time of calling the alias, but this is giving an error. When I open the terminal it already ask...
asked by 20.02.2016 / 17:14