Questions about using the command-line interface (CLI).

learn more… | top users | synonyms (5)

1
vote
3answers
56 views

How to check which shell am I using?

I read that terminal is nothing but shell. Then unix provide different flavors of shells: Bourne shell (sh) C shell (csh) TC shell (tcsh) Korn shell (ksh) Bourne Again shell (bash) When I open ...
0
votes
1answer
58 views

How do i write a terminal script to setup ubuntu for me instead of spending days every time?

From what I understand I can make a text file with all commands same as I would type in terminal, make it executable and run it. Would running sudo mysetup.sh or mysetup.txt be OK so not typing PW ...
3
votes
1answer
31 views

Display 'cd' accessible path to mtp device in Nemo

Nemo displays path to mtp device like that: mtp://[usb:001,007]/ I want to be able to copy path from Nemo to terminal and cd there. Maybe it's possible even with this path while escaping some ...
0
votes
0answers
20 views

Unable to install ubuntu-14.04.2-desktop to VM

I downloaded ubuntu-14.04.2 to my documents in Windows 8.1 I then extracted the files and copyed them to my D:\ DVD drive, I then opened my VM Machine and I get a 2.0 Shell prompt ! What command do I ...
2
votes
1answer
6k views

Upgrading ubuntu 12.04 32 bit to 64 bit [duplicate]

I have recently installed ubuntu 12.04 LTS i686.I want upgrade it to 64 bit.How can I do it via terminal?
0
votes
4answers
44 views

How would I create an alias to run a game? (Minecraft)

How would I accomplish this? I want to type in runmc to run the command java -jar /root/.minecraft/launcher.jar. I already put the following into my .bashrc file alias runmc ="java -jar ...
0
votes
0answers
21 views

How to run an alias command with sudo [duplicate]

I created an alias called runmc that allows me to start up a java program. But I noticed that when I type in "sudo runmc" (It needs root access to work properly.), it will display "runmc: command not ...
3
votes
1answer
50 views

How can I run a script when the power supply is plugged-in or -out?

For some reason, my laptop's screen brightness does not update when I plug-in or plug-out the power supply. I've looked at quite a few solutions for that problem, but none of them seemed to work well. ...
2
votes
1answer
36 views

LibreOffice command line font substitution at pptx to pdf conversion

Question Is there any way to specify to libreoffice, via commandline, to use Cambria for occurences of Calibri in the PDF generation without the need of any user-interaction? Context I am using ...
3
votes
3answers
9k views

How to create shortcut for a command in terminal?

I want to create a shortcut for a command in terminal. Like for a command "ssh user@123.45.7.123", I just want a command "user" and the above command will run. Is this possible, and if so how can it ...
5
votes
2answers
4k views

How to start git-gui?

I've installed git-gui tool via sudo apt-get install git-gui. But how do I start it? Trying with search or git-gui command did not find and UI tool for Git.
0
votes
2answers
26 views

Help reverting changes to GRUB

Okay, so I tried to use this fix for my blackscreen when going into tty command line sudo sed -i -e 's/#GRUB_TERMINAL/GRUB_TERMINAL/g' /etc/default/grub This did not fix it, but I found something ...
2
votes
1answer
52 views

Can there be two init processes?

I am new to Operating Systems (specifically Linux) and this is my first question here I want to ask, can there be two process with CMD = init (as given by ps - e command). I had two processes on my ...
6
votes
1answer
509 views

How do I get information from the logs on my computer when I only have access to the command line?

For various reasons I can no longer access my graphical desktop, and can only login via a tty (Ctrl+Alt+F1 through F6 by default). To help diagnose and solve my problem I need to look through the ...
0
votes
0answers
20 views

command to Close the Archive manager automatically [closed]

I am trying to unzip the files from source folder and after unzipping them i want to put extracted files in the destination folder for that i am using below command x source folder -o destination ...
4
votes
2answers
276 views

What's the difference between shell builtin and shell keyword?

When i run these two commands, i get $ type cd cd is a shell builtin $ type if if is a shell keyword It is clearly shown that cd is a shell builtin and if is a shell keyword. So what is the ...
3
votes
2answers
70 views

How to stock all files with the same suffix into a table?

i'm making a little shell script and i want to stock all files with same suffix in a table. i want something like that : path=/home/user/Documents suffix="_suffix.txt" and then a function that ...
1
vote
1answer
64 views

Complete List of Terminal Commands and all their parameters [duplicate]

I was wondering if there was any complete guide to the Linux Terminal (don't mind buying a book or something), specifically, I want the list (or book) to do an A-Z of the commands with all their ...
5
votes
3answers
14k views

All main Terminal commands

What should I write in Terminal to see all main commands?
0
votes
1answer
28 views

Can't get IPython to start: “ImportError: cannot import name start_ipython”

I'm trying to start IPython from the terminal. I input: ipython into the terminal and I get this output: Traceback (most recent call last): File "/usr/local/bin/ipython", line 4, in ...
14
votes
1answer
725 views

How can I redirect what is shown on screen to a file?

I'm trying to view the content of a big file in Terminal by less command and I want to redirect the screen content(the content that currently I'm looking not the entire file, until I press the Q to ...
3
votes
0answers
38 views

Terminal crashes when running lsblk -h [closed]

Im currently running Ubuntu 14.04 LTS. In the desktop I open a terminal window and type: lsblk -h And the terminal crashes! lsblk on its own runs fine. lsblk --help also crashes the terminal. If I ...
7
votes
1answer
479 views

How can I run a command and copy its output?

I've been asked to run a command and copy and paste the output but I have no idea where to start. What do I do?
4
votes
1answer
159 views

How to prevent output from '&' and '>' operator (send to background operator and redirection operator)

I have tried various combinations of gedit, &, >/dev/null 2>/dev/null. When gedit is used with the other two it always prints something to the terminal. I understand that the numbers are ...
2
votes
2answers
21k views

How can I check disk space used in a partition using the terminal in Ubuntu 12.04 LTS?

I am using Ubuntu 12.04 LTS and I was wondering if there is a command that can tell the space used in a partition using the terminal. Like I want to use the su command to change to a user called admin ...
1
vote
1answer
66 views

In the command line prompt, how do I show the full home path instead of the tilde (~)? [on hold]

In the terminal prompt, how do I get to see the full path of the home directory? That is, from root@pcname:~ # to root@pcname:/home/username #
13
votes
1answer
1k views

How to display random jokes from www.icndb.com in your terminal?

I already know that you can get some nice quotes/jokes using the fortune program. But I've found in this urwird script a new source of fun that I'd like to have when I open a new terminal. This time ...
0
votes
0answers
17 views

how to run “acpype” program?

If I want to open this program, I am giving "acpype" in the terminal and getting the following error: sslab1@sslab1-ThinkCentre-Edge72:~$ acpype bash: /usr/local/bin/acpype: Permission denied What ...
12
votes
3answers
39k views

What does 2>/dev/null mean…?

I want one or two line description about the following command line: grep -i 'abc' content 2>/dev/null
91
votes
6answers
162k views

What is the correct way to completely remove an application?

I've searched the net for such information and found different command lines, like these ones: sudo apt-get remove application sudo apt-get remove application* sudo apt-get remove --purge ...
9
votes
5answers
3k views

Will creating a text file in vi change my computer?

I know that Linux is an operating system built on text files. What I would like to do is create a file using vi of all the various commands I have learned. That way I could find each individual ...
22
votes
2answers
29k views

How do I extract a password protected .7z file?

Can someone tell me how can I extract a password protected .7z file in Ubuntu server? (I know the password, I just need a program to do so and an example of how to use said program...)
0
votes
0answers
17 views

How to install Sublime Text 2.0.2 on Ubuntu 14.10 [duplicate]

I have the latest version of sublime text → Sublime Text 2.0.2 x64.tar How can I install it on ubuntu 14.10 ? Thank you.
11
votes
2answers
14k views

Why does switching to the tty give me a blank screen?

After booting to the GUI in 12.04, I attempt to move to the virtual terminal (or shell, or tty) via Ctrl-Alt-F1 (F1 - 6), and the screen remains blank. I'm tried all 6 tty instances and the results ...
0
votes
0answers
12 views

LTSP Ubuntu thinks I'm a different user, but $USER and $HOME are correct

I am running an Ubuntu 14.04 system with the XFCE4 desktop as a fat LTSP client. Ubuntu seems to be under the impression that I'm a different user. When I go into the terminal, the \u portion of PS1 ...
15
votes
4answers
4k views

What is the functional difference between sudo su and sudo -i?

Why is one preferred over the other in this example? sudo su echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi.conf exit Please provide links to Ubuntu documentation.
1
vote
3answers
58 views

gksudo doesn't act like sudo for 'string' >> file [duplicate]

I'm trying to do a two-lines-script to temporary set a specific nameserver. Therefore I just output 'nameserver XXX.XXX.XXX.XXX' to the /etc/resolv.conf file, because it gets overwritten next time ...
10
votes
3answers
705 views

How to display the name of file which I am currently editing with vim on terminal title?

I am editing multiple files located in the same folder, in multiple tabs, on a single terminal. pwd(directory in which I am currently working) is displayed on the top of the heading of the terminal, ...
3
votes
3answers
11k views

After executing a command in the terminal, I sometimes can't execute another

First off sorry for the noob question, I'm sure it's been asked before but I have no idea how to phrase it eloquently... Sometimes when I open/run/execute (unsure of proper term) an application ...
0
votes
1answer
17 views

--resizebyte: command not found [closed]

I'm trying to resize my Ubuntu VirtualBox hard drive through my MacBook Air terminal and I'm having a bit of a problem. I used the command VBoxManage modifyhd <uuid>|/Users/(my ...
0
votes
0answers
18 views

Executing C programs from HDD or PenDrive [duplicate]

So lately I've been in C programming. On trial and Error and Basis I tried Compiling(GCC) and Executing(./a.out) from my Windows' partition and Pen-drive i.e. precisely I tried executing on NTFS and ...
18
votes
3answers
18k views

youtube-dl is not working

I am using youtube-dl to download some videos from youtube. But when I write: youtube-dl http://www.youtube.com/watch?v=rn_YodiJO6k I get: [youtube] Setting language [youtube] rn_YodiJO6k: ...
0
votes
0answers
22 views

How to Compress (More then one at a time) PDF files from terminal

I work with lots of rather large imaged documents ranging from a few bites to multiple gigs of data per file. I need these documents to take up less storage space and especially to be more ...
0
votes
0answers
32 views

ffmpeg not recognized

I am having a problem with ffmpeg. I had it installed and then installed 14.10. I reinstalled it, but I am getting this error message. Also, I went to this website ...
0
votes
1answer
21 views

How to install ACPYPE and fix the error in Ubuntu 14.04?

I wanted to install acpype in ubuntu 14.04 and I followed the comments given in ubuntu program installation guide: I have followed the following commands. acpype go to the directory in which you ...
0
votes
2answers
301 views

JDBC Connection Pool details on Glassfish

I can get some basic information from Glassfish v4 about the JDBC connection pool from the CLI with asadmin: thufir@dur:~$ thufir@dur:~$ glassfish-4.1/glassfish/bin/asadmin Use "exit" to exit and ...
0
votes
1answer
40 views

Configure a command line to execute on log in [duplicate]

Every time I reboot my Ubuntu 14.10, my touchpad drive(synaptics) resets to default configuration. Is there a way to restore my sysclient settings after rebooting? Alternatively; how can I configure a ...
0
votes
0answers
31 views

Switch from terminal to graphic interface

I have a VPS running Ubuntu 14.10 and it has only a command line. I followed this tutorial to install a graphical interface . Then, after I connect to a VNC xrdp says login failed. I know my password ...
2
votes
1answer
276 views

removing files older than 7 day

I write below command to delete all files that are older than 7 days, but it doesn't work: find /media/bkfolder/ -mtime +7 -name'*.gz' -exec rm {} \; How can I remove these file?
0
votes
2answers
44 views

want to access local ubuntu server to get files to hosting

I do have local ubantu server with files, I need to access those files and upload them to my website hosting. How can I do it? -thank you