Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 289138

This tag is for questions that are about using the command-line interface (CLI), including the use of standard command-line tools and shell commands. However, for questions that are specific to each shell (like Bash, ZSH etc.), use the tag of that particular shell as well.

2 votes

How do I move a file to its parent's parent directory?

For educational purposes $ man bash Type / and fill in ^ +Parameter Expansion then press ENTER Alternatively study the Bash guides at www.tldp.org An example to study: $ f="B/A/C.txt" $ mkdir -p "${f …
Hannu's user avatar
  • 5,799
1 vote

What is terminal initialization by reset command?

For me: $ tput reset | od -t x1z 0000000 1b 63 1b 5b 21 70 1b 5b 3f 33 3b 34 6c 1b 5b 34 ..c.[!p.[?3;4l.[4. 0000020 6c 1b 3e .l... 0000023 ... cleansed a …
Hannu's user avatar
  • 5,799
0 votes

How to send terminal output to text file without newline

Your Terminal window is too narrow for the lines to be displayed on a single line (per filename). Hold the left ALT-key, while doing so; place mouse pointer over either window side, inside the win …
Hannu's user avatar
  • 5,799
13 votes
Accepted

Why do some programs return when being called from the terminal while others just return onl...

This depends entirely on how the software was written, often also depending on the intent with it. Most bash (= shell, terminal) utilities are meant to be used "synchronously", with these the executi …
Hannu's user avatar
  • 5,799
0 votes

Is there a command to open a new terminal from the terminal command line in Ubuntu 18.04?

Have a go and type: $ man bash and as you have launched it, type: /JOB CONTROL and hit ENTER (good enough answer?!) You might also like -> www.tldp.org -> Bash guides - for more elaborate text and exa …
Hannu's user avatar
  • 5,799
0 votes

looking for a Book on Ubuntu Linux

"MS-DOS" is cmd.com in my eyes... The evolved version of the command line is e.g. Bash and the other "Shell"s. To get to know Bash you may go to www.tldp.org and get the Bash guides there. They will t …
Hannu's user avatar
  • 5,799
2 votes

How to change the name of media device from terminal

man -k label | grep -E 'file|volume' should print the names of a few relevant shell commands. Check out the man pages. You will probably need to prepended with sudo as you attempt to run any of the …
Hannu's user avatar
  • 5,799
4 votes
Accepted

Call functions from C program in terminal

I'm sorry, but you have to read up on C syntax. There were two major issues: Defining functions inside main is not possible in standard C and even in the GCC extension, it certainly doesn't work how …
Hannu's user avatar
  • 5,799
1 vote
Accepted

Cannot find /howto directory

"... learning how to use the command line in Ubuntu ..." you might be better off with the Bash guides at http://www.tldp.org/guides.html Otherwise, to locate local files and folders, try e.g. l …
Hannu's user avatar
  • 5,799
0 votes

Reset search history to search from the start with CTRL + r

To do more advanced searching than provided by CTRL+R: $ man history tells about a good deal of options. but then, $ history | grep search-terms might be easier to understand, as it is more "standard …
Hannu's user avatar
  • 5,799
5 votes
Accepted

How can I create a custom terminal command with a variable argument?

General answer: Open your web browser on www.tldp.org and look for the "Bash guides" Simple answer: Open a terminal (Shell) and type (in the process you will see text not shown here) cd mkdir bin ec …
Hannu's user avatar
  • 5,799
4 votes
Accepted

Execute command in terminal an don't wait its return

Firefox 35 on Ubuntu 14.04 detaches itself from the shell, still printing errors though, to eliminate that output, try: firefox >/dev/null 2>&1 www.google.com & The >/dev/null makes firefox's 'std …
Hannu's user avatar
  • 5,799
1 vote
Accepted

When do you run "apt-get update?"

If you have set System settings (icon in the Launcher) > Software and updates > / Updates \ > Automatically check for updates: to something else than "Never", then you shouldn't need to do anything fr …
Hannu's user avatar
  • 5,799
1 vote

Shell or bash script to open multiple URLs saved in a .TXT file in a browser from the terminal?

Now, I hope yo're aware that askubuntu is not a script writing service. http://www.tldp.org has at least two "Bash guides", if you read them, even just skimmingly you will gain knowledge that will hel …
Hannu's user avatar
  • 5,799
0 votes
Accepted

Lists only hidden files in my home directory in long format?

Try: $ ls -lA | grep ' \.' The -A option to ls includes all hidden files, except . and ... grep, as used above finds . (space, dot) and filters away lines that do not have that. $ ls -lA | grep -E '^ …
Hannu's user avatar
  • 5,799

15 30 50 per page