Linked Questions

83 votes
5 answers
75k views

How can I convert audio from ogg to mp3?

I'm looking for a well working audio converter which is able to convert audio files (ogg) to mp3 format. I tried it with the "sound converter" from the software center but it stopped ...
user256422's user avatar
55 votes
4 answers
737k views

How to write the path of a folder with space in its name? [duplicate]

I can't figure out how to write the path of a folder that includes spaces in its name (in Terminal). I tried: cd /path/path/path/"A Folder"/file cd /path/path/path/'A Folder/file cd /path/path/...
Elian Kamal's user avatar
39 votes
2 answers
279k views

How do I navigate to folders with spaces in their names? I get "no such file or directory" when I try [duplicate]

I'm completely new and lost in Ubuntu 12.04, I'm having trouble navigating to my Sublime folder which I know is in my /opt folder. Yet I've tried to no avail to navigate into it via Terminal window. ...
webdev's user avatar
  • 519
23 votes
2 answers
55k views

How can I protect parentheses passed to a cd command? [duplicate]

I asked here how to make cd protect spaces. Tab completion is great, but sometimes you paste the path from the clipboard so this is useful. The solution breaks with parentheses however. No matter how ...
Strapakowsky's user avatar
  • 11.9k
20 votes
2 answers
202k views

How to access files/directories with spaces in the name? [duplicate]

Through terminal I can't access files or directories with a spaces in their names. The cd command says no such file or directory. Is there any way to do it or should I rename all files with spaces?
Gokul's user avatar
  • 375
19 votes
9 answers
4k views

Open a doc from terminal, but not by its name

Is it possible to open a file from the terminal not by its name but by its (number) position in the folder? Or any other option? Because the name is too long.
yh yeah's user avatar
  • 207
14 votes
0 answers
3k views

How do I enter a file or directory name containing spaces or special characters in the terminal? [duplicate]

I have a collection of files and directories with strange names, they contain spaces and the special characters \, *, ), ( and ?. All of them cause problems when I try to use them in the command line ...
dessert's user avatar
  • 40.1k
12 votes
5 answers
2k views

Using cd command to navigate directories in Ubuntu which have special characters [duplicate]

When I want to navigate into directories having special characters in their names I get an error message. For example: aman@desktop:~/Aman$ cd !)e$!gn&(reate bash: !: event not found aman@...
Aman's user avatar
  • 221
9 votes
2 answers
3k views

using '&' in a directory name [duplicate]

i have a directory name with ISO&Emulator having some Important Files. and this directory is in different partition, and partition not showing in my FileManager(Nautilus). so i mount my partition ...
Praveen Yadav's user avatar
8 votes
4 answers
5k views

Is there a way to create a script and make it executable in less code than this?

My code to create an executable script touch script.sh && echo "echo 'Hello World'" > script.sh && sudo chmod +x script.sh
Sham Fiorin's user avatar
6 votes
3 answers
25k views

single quote and double quotes in sed

I tested the single quote and double quotes in sed me@host:~: $ echo "front" | sed "s/front/back/" back me@host:~: $ echo "front" | sed 's/front/back/' back They performed identically, but I ...
Wizard's user avatar
  • 2,891
6 votes
6 answers
7k views

How to move files from subdirectories that have the same directory name to its relative upper/parent directory?

So, I have a directory structure like this: parent/ ├── sub1 │   └── source │   └── file1 │ └── file2 ├── sub2 │   └── sub2.1 │   └── source │   └── something1 │ └── ...
Lukman Hakim's user avatar
5 votes
2 answers
587 views

Dealing with space in file links using bash [duplicate]

I got a problem. Here is my bash script to merge videos with subs: #!/bin/bash cd /media/ptrknvk/'TOSHIBA EXT'/Shows/My/'Doctor Who'/ url0='DW s11e0' url1='DW\ s11e' for(( i=1; i<11; i++ )) do ...
Danila Kiselev's user avatar
5 votes
1 answer
886 views

Syntax error while deleting files with `(` character in the name [duplicate]

I'm trying to delete a file using the console with this command rm ./google-chrome-stable_current_amd64(1).deb but I get a syntax error. What is wrong with this command?
af1223345's user avatar
4 votes
2 answers
4k views

How to rename (unhide) all files and subdirectories within a directory?

I want to make a script to "unhide" all files and directories inside a certain directory in one go, e.g. ./unhide test. test/ ├── sub1 │   └── .hiddenfile1 └── sub2 └── .hiddendir ├── ....
Lukman Hakim's user avatar
4 votes
1 answer
1k views

Can't copy, move, rename files that have special character (single quote) in their file names [duplicate]

I have some files that have the special character ' in their file names. I seem to not able to copy, move, rename those files. For example, when I try to rename grandpa's_pen.mp4 to grandpas_pen.mp4, ...
Mr.Sajjad's user avatar
4 votes
1 answer
31k views

How to send JSON as variable with bash curl?

I'm trying to send a POST request with curl, but I'd like to store the json data in a variable in order to resend it if an error occur. I used this code: jsonvariable="{"ora" : "value1", "temp" : "...
yuki182's user avatar
  • 43
4 votes
1 answer
109k views

cp: cannot stat: No such file or directory exists [duplicate]

Orienting myself with basic terminal commands (Ubuntu 16.04); I have a file listed in my Downloads folder; a Jupyter notebook file called, 'Indexing and Slicing.ipynb' and wish to copy the file to my ...
NoVice's user avatar
  • 43
3 votes
2 answers
2k views

cd to a directory has hash (#) [duplicate]

Well, I have few directories have name contains hashes (#, eg: #abczxy). Now I can't to execute this cd #foo it will redirect me back to the root directory equal with this command cd The question is, ...
Toan Nguyen's user avatar
3 votes
3 answers
55k views

"chmod: missing operand" while installing tomcat 7 on Ubuntu 18.04

~/tomcat/apache-tomcat-7.0.90/bin$ sudo chmod 700/tomcat/apache-tomcat-7.0.90/bin/*.sh chmod: missing operand after ‘700/tomcat/apache-tomcat-7.0.90/bin/*.sh’ I am not able to understand this error. ...
Rutuja Jori's user avatar
3 votes
1 answer
3k views

Trying to create a folder with date and time with a space

I am trying to create the folder using: mkdir $(date +%Y-%m-%d %H%M) So you see a space between the two and I know this is not best practice but I would like to get it to work. I have tried to ...
always_learning 's user avatar
3 votes
3 answers
2k views

Replace String "Development" with "Staging" or "Production" using SED

I am trying to replace the string : 'development' with : 'production' using sed. I tried a few options including: sed -i "s|: \'development\'|: \'staging\'|g" index.php but without any luck. ...
Awais Tariq's user avatar
3 votes
2 answers
9k views

unzip unable to find file with spaces in file name [duplicate]

I'm a psychology student at the VU Amsterdam. For my statistic courses this software called IBM SPSS statistics is required andabsolutly neccesary. I bought it of the official website and downloaded ...
Mumen420's user avatar
3 votes
1 answer
10k views

"cd" into directory containg space in name [duplicate]

So I have been using Ubuntu for a few months now, and have come across a very noob terminal question. I want to go from home -> Documents -> My Programs I am able to get into my documents folder by ...
user avatar
3 votes
2 answers
2k views

How to run commands in the shell in parallel without disrupting the output?

I have the following shell script: ./run 50 5000 100 100 1.0 2 0.3 0.3 0.05 1 101 0 2 1 0 10 0.1 & ./run 50 5000 100 100 1.0 2 0.3 0.3 0.05 1 101 0 2 1 0 10 0.2 & ./run 50 5000 100 100 1.0 2 ...
WhoCares's user avatar
  • 157
2 votes
3 answers
750 views

How can I enter and also rename folders like ''Human (2012)''? [duplicate]

I am playing with FTP via the command line, and I get two problems. I am not able to rename or enter folders like: dir /home/folder1/Human (2012) I tried: cd ~/folder1/Human\ (2012) Here I receive ...
Martin Šanta's user avatar
2 votes
2 answers
304 views

How to send output of convert to a writable directory in bash?

I want to convert .tbl files to .csv in /data/ directory which I've got read-only access. I'm using this command: for i in `ls *.tbl`; do sed 's/|$//' $i > ${i/tbl/csv} echo $i done But I'...
Marzi Heidari's user avatar
2 votes
1 answer
5k views

'sed' not replacing text in file

I am attempting to replace tokens in a JSON file with values held in our CI tool of choice (Bamboo). To do this, I am using jq to extract an array of values, and then replacing the token in each ...
David Gard's user avatar
2 votes
2 answers
770 views

Using SED to delete text in a file

I am trying to create a bash script that will manage a basic inventory system for a friend. Everything he wants to inventory has a barcode, that when scanned, returns a 6 digit number (EX. 000001). I ...
Tech_Person's user avatar
2 votes
1 answer
574 views

How to access directory with non-ascii, \n character in dir name

I have some data saved in a directory which has a non-ascii character in the name, how can I access the data within? The directory appears as: w0p6_t[[0.53.5]?[1.71.2]] But escaping the special ...
FinleyGibson's user avatar

15 30 50 per page