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

learn more… | top users | synonyms (6)

5
votes
1answer
137 views

What is UUID in virtual box?

When I create a Virtual Machine in command line using the following command: VBoxManage createvm -name <VM's Name> -register It returns: Virtual machine <VM's Name> is created and ...
3
votes
1answer
53 views

I want the date and time to be added in a text file whenever I open it

I was using windows 7,8.1, and 10 previously and there was an option in the Notepad that if I type .LOG at the beginning of the file (which is done only once), every time I open the notepad the date ...
0
votes
1answer
30 views

How do I access encrypted folders from the terminal?

I encrypted the whole hard disk (via encfs) on installation of 14.04, and I want to install an HP driver only installable from the terminal. But "cd" does not recognize any encrypted file directories, ...
-2
votes
2answers
64 views

Terminal command cd (change directory) directly

The directory Pictures is located at /home/mj/Pictures/ The Terminal window displays (meaning /home/mj/): ~$ In the "Ubuntu Documentation: Using The Terminal" it says: … use, "cd /var/www" to ...
2
votes
1answer
59 views

Code to send the contents of a text file into a terminal window [closed]

I'm looking for some code to be able to send the contents of a text file to the terminal window at the press of a button or through by typing an alias into the terminal. If I explain what I'm trying ...
1
vote
2answers
42 views

Terminal command cd (change directory)

In Terminal (Xubuntu) I enter: pwd Terminal reply: /home/mj In the "Ubuntu Documentation: Using The Terminal" it says: To navigate to the previous directory (or back), use "cd -" I enter: ...
2
votes
0answers
22 views

how to launch apps hidden from the launcher or panel

How do I launch an app in such a way that it does not show up in / is hidden from / skips the panel or unity launcher or xfce panel or kde panel etc? Apps like "stormcloud " weather app are a good ...
1
vote
2answers
28 views

Possible to add a command to be run when a currently running command completes?

When running time consuming processes in terminal, I like to add something like say "done" as an additional command so that I can get alerted when the current process ends. For example: $ ...
1
vote
1answer
27 views

Colored boxes on around the folder name in terminal

I gave local user to read and write permission to a particular folder using command chmod 777 /data/folder/ Now I am seeing a colored box hovering the folder's name which I really bugging ...
1
vote
1answer
23 views

Compressing ended up compressing home directory

So i was trying to compress lolok folder using 7z command : 7z a Documents/lolok/ But i forgot to create a name for compressed folder, which should be like this : 7z a cobas.7z Documents/lolok/ ...
1
vote
1answer
29 views

How can I use ZSH when I use sudo commands but not as default root shell?

So, I would like to keep bash as the default shell for root. But, I would prefer to use zsh, my shell, when I run sudo commands, and that sudo executes also the .zshrc in /root. For testing ...
2
votes
2answers
120 views

How can I copy the path to the currently opened file in gedit to the clipboard?

I am trying to write a custom command in Gedit which copies the currently open and active document's path(both upto parent dir & upto file) to clipboard, as I couldn't find any gedit-plugins or ...
0
votes
1answer
30 views

Joining MP3's via commandline with background track

I'm already taking advatage of two command line utilities. I'm using ffmpeg to convert m4a to mp3, and then I'm combining a few mp3's into one large one using mp3wrap. The resulting file is something ...
1
vote
1answer
71 views

Are there any options of bash with which it is invoked?

I find that the default shell that I use when I start Terminal (with Ctrl+Alt+T) is /bin/bash. And running the built-in command type on bash as: type -p bash returns the result as: /bin/bash ...
0
votes
1answer
43 views

Couldn't Excute command line PostGIS pgsql2shp

I am using postgres 9.3 with postgis 2.1 on Ubuntu 14. When I tried to dump pgsql table using pgsql2shp, I get the following error. Error: pg_wrapper: pgsql2shp was not found in ...
1
vote
3answers
60 views

How to Zip and Unzip a directory and its files in Linux [duplicate]

I am a newbie in Linux.Whats is the complete process to zip and unzip a directory and its files.Please mention if any installation has to be done.
1
vote
1answer
29 views

Edit find command to exclude a file

So I made this script Convert videos recursively with handbrake. And it uses this command as an option find . -name '*.mkv' -exec rm -r {} \; But i made this new script, for removing audio streams ...
0
votes
1answer
25 views

error installing vlc through terminal [duplicate]

E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could not get lock /var/lib/dpkg/lock - open (11: ...
0
votes
1answer
34 views

grunt-cli dont work

I have wasted 2 days on this already and i do not get it... so i have latest stable node.js, it works, npm works, nvc works. but when i try to install grunt i install grunt-cli, i instal grunt in ...
0
votes
1answer
19 views

Change framerate of mp4 video without reencoding using mp4box and piping

I'd basically like to do what this guy asked for. Using the lines of Mitch I get a perfect result. I'd now love to use the output of mp4box directly as input of mp4box again (to make one command out ...
0
votes
1answer
41 views

Ubuntu command-line window. A newbie question

I'm watching a tutorial on youtube about Zookeeper installation, confuguration and usage. And what I do not understand is how the instructor opens up three different terminal windows with titles like ...
1
vote
1answer
26 views

any terminal closes when opening after upgrade to ubuntu 14.04

After upgrading Ubuntu 12.04 to 14.04 (both LTS) all my terminals close immediately after opening. However, the root terminal opens normally and stays open - this is the only one I can use. I spent a ...
1
vote
2answers
43 views

Clamav not accepting parameters

I'm trying to run clamAV, and I was getting warnings about maxfile size reached.So now, I am trying to increase the limits on the max filesize, and max scan size, but I get errors, about not being ...
0
votes
1answer
60 views

Did I corrupt my OS?

I typed this command in the terminal while trying to check if I correctly installed LAMP (Linux, Apache, MySQL, PHP) equivalent packages in Ubuntu: sudo mv /home testing.html /var/www/html I am new ...
1
vote
2answers
51 views

Executing a bash script in the terminal just by its name [duplicate]

I am trying to follow this example in the Bash Guide over here where one can run a script just by its name instead of bash scriptname. First I used these three commands to create a bin directory, add ...
0
votes
2answers
35 views

set shortcut for executable program from terminal

I installed a program and I want to create a shortcut. e.g. I want to type eclipse into the terminal to launch the program. I already copied the eclipse folder in /home/user/Programs and created ...
0
votes
0answers
18 views

Unable to resolve installation issues from command line [duplicate]

I am using ubuntu 14.04 with a wired broadband connection. I am unable to install packages from software center as well as from command line, showing Unable to correct problems, you have held broken ...
0
votes
0answers
26 views

OSX like terminal behaviour? [duplicate]

I got a little something that really bugs me using Linux/ Ubuntu. As a OSX user I'm really used to the ALT + LeftClick to move cursor in the terminal. Now I've been researching about this but didn't ...
0
votes
0answers
36 views

Command line tool that will detect PDF crop marks

I have searched the site for a way to crop PDFs based on the sporadic location of the crop marks. I did see the question titled Command line tool to crop PDF files that suggested PDFcrop and a couple ...
0
votes
3answers
653 views

Which command should I use to open an MP3 file?

Which command should I use to open an MP3 file? For example, "abcd.mp3" hamza@ubuntu:/media/hamza/Elements/mmc$ cd abcd.mp3 bash: cd: abcd.mp3: Not a directory
2
votes
1answer
49 views

Is it possible to ripping a CD via another computer?

I have multiple computer on my local network. Some of it use Windows OS. On one of Windows system, it had one CD drive. I'm also have Ubuntu system on another computer. This's the scheme: ...
3
votes
2answers
188 views

Script to set IP address connected to an interface to a shell variable

I want to write a script to set the IP address of the device connected to an interface like "eth0" to a variable. I can get the IP address by this command: arp -i eth0 -a The output of above ...
0
votes
0answers
29 views

Definition of basic ubuntu terms [duplicate]

I am new to linux and i wanted to know the difference between the definition on the words : terminal , bash , script , command line , shell Any help would be appreciated .
4
votes
1answer
34 views

Darkening the terminal's window-shadow (or changing its color)

I recently darkened my terminal's background (easier on the eyes!), but now, when I put multiple terminals on top of one another, they kind of meld together. Previously, the shadow was what made it ...
0
votes
1answer
42 views

How can I get my terminals / shells to have custom designs in it?

How can I add fun stuff to my terminal so I have extra zazz for when I break every thing every day! :D I'm learning C / C++ and think root projects and custom terminals would be fun way to practice ...
0
votes
2answers
37 views

What is the command to make a copy of a directory in a directory to create it as a file? [closed]

The command I used was: sudo cp -r /etc/apache2/ sites-available <file name> When I went into nano to change document root is tells me it is a directory and I can't get it in nano to make ...
0
votes
1answer
14 views

Linked Files in LD_LIBRARY_PATH statement not working

Is there some magic to ensure that Link files work when part of a PATH statement? I have an app that is looking for /opt/Qt/5/gcc_64/lib/libXmlPatterns.so.5 The above file is a link to a file in ...
0
votes
2answers
28 views

Is there a way to access the WiFi connection through the shell?

Is there any way of seeing/manipulating connection represented by the WiFi symbol on the desktop? For example, programmatically connecting and disconnecting to a router.
0
votes
1answer
33 views

Strange Lines in terminal [closed]

thoose pictures for the problem I face, I don't know how to it happened but it just happened.. So, I want to know how it happened and how to solve it ?
1
vote
1answer
99 views

Why does 'sudo java' change the user home directory to /root?

I have a program that needs to access a file in my home directory. Ubuntu will not allow this to happen due to the program not having root privileges. At first I ran this java command (which ...
1
vote
1answer
42 views

Unable to launch xdiagnose through GUI in normal way

I am in need of doing some diagnostics work with xdiagnose, however when searching for it in the Activities Overview, and then clicking on it, absolutely nothing happens, when in the past it would ask ...
0
votes
1answer
45 views

How to open a file with LibreOffice Writer from Terminal?

I use LibreOffice Writer a lot, but I really do hate getting around in a GUI, I much prefer the CLI, so is there any way to open a file using LibreOffice Writer through the Terminal?
2
votes
1answer
336 views

Rename hundreds of directories [duplicate]

I have more than hundred directories named SP_[number]_date. I'd like to rename all to just SP_[number]. I can only figure out how to do that by mv SP_1_date SP_1 but that will take ages. Can I ...
0
votes
0answers
12 views

ERROR with gem for a ruby tool?

I am trying to install a tool script called bio-polyploid-tools and I am getting this error after command sudo gem install bio-polyploid-tools sammanmahmoud@samman[bioruby-polyploid-tools-master] ...
0
votes
1answer
33 views

Does lxtask accept cmd line parameters?

I am talking about /usr/bin/lxtask in Lubuntu. "man lxtask" gives only a short description (actually the shortest I have seen so far for any utility or tool). I need to set size and position of the ...
0
votes
1answer
61 views

How can I download audio from youtube videos with my ubuntu? [duplicate]

My system: I am using a Toshiba Chromebook II with an Intel processor and running Linux ubuntu with a duel boot. What I have tried: I have downloaded MediaHuman's "Youtube to MP3" application but ...
0
votes
0answers
20 views

Learn Terminal&Ubuntu [duplicate]

everyone, Actually, I am new in Ubuntu. I am beginner in Linux. I want to learn terminal well. What do you recommend? WHich book or which tutorial or website do you suggest for me to learn ...
-2
votes
0answers
24 views

How to run a C program that compiled on other linux distro?

I am using Ubuntu Linux and Kali Linux both so, I compiled a C program on Kali and tried to run on Ubuntu but it gave an error Permission Denied?
1
vote
0answers
19 views

How to remove all comments/annotations in multiple pdfs from command line

Are there any open source solution to remove all the comments/annotations from PDF files using command line? I searched around, and it seems that there are solutions with commercial software, e.g. , ...
0
votes
2answers
54 views

How do I configure network interfaces after installing a basic command-line system?

I have installed a basic command-line system and didn't configure networking at setup time. Namely, I have booted from Lubuntu 14.04 Alternate CD, pressed F4 and selected 'Install a command-line ...