How do you install Google Chrome on Ubuntu?
ubuntu
How do I save the output of a command to a file?
Is there a way without using any software? I would like to know how.
I need a command to list all users as well as commands to add, delete and modify users from terminal - any commands that could help in administrating user accounts easily by terminal.
When I try to install any package through the command line, I get an error.
$ sudo apt-get install <package>
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package <package>
Can anyone help me on this?
How do I delete the following directory?
I typed:
rmdir lampp
This error comes up:
rmdir: failed to remove `lampp': Directory not empty
Is there a command to delete all the files in the directory and delete the directory folder?
When I log into my web server via SSH I see the information:
88 packages can be updated.
80 updates are security updates
I tried apt-get update
then apt-get upgrade
but each time I log in I still see the message about updates. How do I install them?
How can I shut down or reboot Ubuntu using terminal commands?
Just downloaded a .zip file from the internet. I want to use the terminal to unzip the file. What is the correct way to do this?
I am trying to copy the contents of a folder to another folder in a different directory using terminal.
Would somebody be able to provide me an example of the command line syntax required to achieve this?
I want to verify that my cron job is executing and at what time. I believe there is a log for my sudo crontab -e
jobs, but where?
I searched google and found recommendations to look in /var/log
(in which I do not see anything with 'cron' in the name) and to edit the file /etc/syslog.conf
which I also do not have.
I have got the directory /home/user/oldname
and I want to rename it to /home/user/newname
. How can I do this in a terminal?
How do I install a .deb
file via the command line?
Whenever I open a .sh file, it opens it in gedit instead of the terminal. I can't find any option similar to Right Click → Open With → Other Application... → Terminal.
How do I open this file in the terminal?
I have downloaded tar.gz files. But I don't know how to install it. How do I install this kind of file?
I received a huge .tar.gz file from a client that contains about 800 mb of image files (when uncompressed.) Our hosting company's ftp is seriously slow, so extracting all the files locally and sending them up via ftp isn't practical. I was able to ftp the .tar.gz file to our hosting site, but when I ssh into my directory and try using unzip, it gives me this error:
[esthers@clients locations]$ unzip community_images.tar.gz
Archive: community_images.tar.gz
End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.
note: community_images.tar.gz may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of community_images.tar.gz or community_images.tar.gz.zip, and cannot find community_images.tar.gz.ZIP, period.
What command do I need to use to extract all the files in a .tar.gz file?
I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.
I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?
I'd like to output a list of all installed packages into a text file so that I can review it and bulk-install on another system. How would I do this?
I get this error when trying to use apt-get
:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
How can I fix this?
After I add a user using adduser
, I can't see it via System > Administration > Users and Groups unless I log out and then log in again. Is that normal?
Also, can I set a newly added user as a sudo
er or do I have to change that only after adding it? How can I do that via the shell?
Finally, can I delete the original user that was created upon initial installation of Ubuntu, or is this user somehow 'special'?
I would like the user to have full rights on this folder (as well as all sub-directories and files in it):
~/.blabla
currently owned by root.
I have found numerous posts (in this forum and elsewhere) on how to do this for files but I can't find a way to do it for whole folders.