Tag Info

New answers tagged

3

You can use if conditional construct to perform an action depending on some condition e.g. if something exists or not. In your case you need to put the action segment inside the if-then condition: if ! [[ -f "_thumb_wd_${f%.pdf}.jpg" ]]; then convert -thumbnail 250x200 "$f"[0]"_thumb_wd_${f%.pdf}.jpg" fi [[ is a bash keyword, we are using it to ...


2

/var/log/lastlog is a sparse file meaning its real size is not reported by ls -l but by ls -s. This means that your lastlog might not be as huge as you think: Try: ls -s /var/log/lastlog to get a report of its size in blocks. The sudden growth of /var/log/lastlog means a high UID user as logged out. Look at lastlog man page Edit - To fix it: You can ...


0

I got it working this way. On your Galaxy tab go to :Settings->Wireless&Network->USB Settings-> select Mass Storage. Then connect the Galaxy tab to your computer and select "mount"


0

If you're not root, you can access the preference by clicking on the status bar where it says nautilus. A menu will drop down and you'll be able to access the Preferences from there. This won't work if you're running nautilus as root (as the rest of the shell is not in root). if you're root, you can access the Nautilus preference via dconf-editor: alt-f2 ...


1

You can edit any file. The only question is whether this makes sense. For binary files you can use a hexeditor, eg. hexedit: sudo apt-get install hexedit eg: hexedit /bin/bash But if you want to change the code, from which the binary was created, then you need the source code. As an example, for the file above used you can find the source code here. ...


2

If the executable file is a binary file (as is in this case) is not possible edit that. You need its source code, edit it and then recompile binary executable.


1

Basically, you keep using incorrect syntax (including your before edited versions of the command). scp jay@192.168.1.129:/home/jay/sshd* ./ should work. Or this , if I have client and server backwards: scp sshd* jay@192.168.1.129:/home/jay/ By the way, I much prefer to keep the original time stamp: scp -p sshd* jay@192.168.1.129:/home/jay/


0

Right click - properties Click on the "Permissions" tab and make sure the "Allow executing file as program" checkbox is checked.


1

Unless you've changed the default file manager in your Ubuntu: Files or File Manager are terms that are more easily understood by new users then the actual package name of nautilus. For that you find this new naming but in deed they are both same. Files is nautilus. To get sure of what I'm talking about open your terminal and run the command nautilus ...


0

I just recently had the same problem - the way I fixed it was to uninstall OpenJDK 7 and install OpenJDK 6. I have no idea why OpenJDK 7 doesn't want to work but it started glitching when I installed it via the Terminal. Installing OpenJDK 6 is like installing a fresh new version of Java. I had tried many different other commands and they didn't seem to ...


0

I actually had this problem, too. I had Java installed and marked the jar as executable, but it still didn't work. Here's how I fixed it (kind of a workaround): Right-click on the jar you want to open and select Properties. Click File Type Options, under the Type section. Click Add under the Application Preference Order and search jar. Select the result, ...


0

Try this. Open a terminal and try running java -version As long as it returns something, you have java installed. You likely haven't marked the .jar files as executable. To do so open a terminal, navigate to where the .jar files are located and run chmod u+x name-of-file.jar Replacing name-of-file.jar with the .jar file you're wanting to run.


0

This isn't original, but here's what I did to fix the problem to my satisfaction. This is a per user solution. There are now three desktop files named "Files" in /usr/share/applications. From my googling I decided I wanted org.gnome.Nautilus.desktop to be the app started by my Files launcher. I copied it to $HOME/.local/applications and then ...


0

Fixed by installing nemo: open the terminal and do this First remove nautilus with sudo apt-get remove --purge nautilus then download nemo sudo add-apt-repository ppa:webupd8team/nemo sudo apt-get update sudo apt-get install nemo nemo-fileroller then your folders might dissapear etc in the desktop. They should return after some time. If not the ...


1

Well, they are symbolic links and, as muru said, probably they have been there all the time but you just didn't notice them. This answer in Ubuntu Forums explains pretty well why they're there: Let's look at a grub config entry in /boot/grub/grub.cfg: menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menu entry_id_option ...


5

Create a file with the extensions you want to remove, one per line (say, dontwant.files): .txt .nfo .torrent .csv Combine find with grep, xargs and rm: find /path/to/media/directory -type f -print0 | grep -zFf /path/to/dontwant.files | xargs -0 rm find with -type f and -print0 will print out the names of all the files it finds separated by the ...


2

Based on what we have got so far from your question: Find and Remove: If you want to remove all files having .txt or .torrent extension: find /path/to/dir -type f \( -name '*.txt' -o -name '*.torrent' \) -execdir rm {} + Alternately, if you want to remove all files that do not have .mp3, .mp4 or .avi extension: find /path/to/dir -type f -not \( -name ...


2

The script below cleans up your directory recursively. It can be run from either cron or a shortcut key combination. The use is simple: Copy it into an empty file, save it as clean_up.py In the head section of the script, set the extensions to remove, in the line: remove = [".txt", ".log"] Run it by the command: python3 /path/to/clean_up.py ...


0

They are soft links to file in /boot mount point 1 root root 33 Apr 9 14:07 initrd.img -> boot/initrd.img-3.16.0-34-generic initrd stands for Initial RAM Disk. initrd is used by kernel as temporary root file system until kernel is booted and the real root file system is mounted. It also contains necessary drivers compiled inside, which helps it ...


0

I got this using "foremost" sudo foremost -t filetype -o ~/out -i /dev/sdaX Here out is the directory where your recovered files will get stored and make sure it is just created, i.e., it should be empty. Filetype can be any file format and X is the drive where you deleted it. For example to recover pdf files on sda1 sudo foremost -t pdf -o ~/out -i ...


0

Followed instructions per http://ubuntuforums.org/showthread.php?t=2226702 as suggested by Aimar Ubuntu 14.04 now recognised the BQ Ubuntu phone and files may be transferred


2

use the command mp3info -p %a %t file.mp3 %a for artists %t for track title if mp3info is not installed in you system sudo apt-get install mp3info


0

Unless you have very specific needs, you could just use gMTP (it's in the repositories). It might come in handy to zip files/folders before transfer (ubuntu touch is able to unzip).


0

The problem is because your destination disk (the disk to which you want to copy the file) is formatted with FAT32 (which has a file size limit of about 4GB. The solution is to format your destination disk to EXT3, EXT4, or NTFS (if you need windows compatibility).


0

I'm pretty annoyed at ubiquity right now. I told 15.04beta2's installer to use / on a raid10f2 md device, without formatting. Fine, I'd already done a mkfs.xfs on that device. I also told it to use my existing /home and /var/tmp md devices, without formatting. /home survived, but my /var/tmp is now empty! What the hell? It's a well-defined place to ...


0

First off, welcome to Linux, you have seen the light :) I think it would be easier to edit directly on the server. You could do something like this: sudo apt-get install nano -y --force-yes sudo nano <path> Where path is the full path of the file you want to edit. If you have to edit on Windows for whatever reason, FileZilla works good: ...


0

From man 2 open: O_NOATIME (since Linux 2.6.8) Do not update the file last access time (st_atime in the inode) when the file is read(2). This flag is intended for use by indexing or backup programs, where its use can significantly reduce the amount of disk activity. This flag may not be effec‐ tive on all ...


0

Try to check if there are hidden directories and files that acctually occupies space. Type this in terminal/command line: Linux $> ls -la Windows $> dir /a If there are no other hidden directories or files, you may have formatted your thumb drive in FAT32. You can also check the capacity of your thumb drive being reported by the OS.


4

As ethanbmnz said, you likely have a FAT formatted drive. So your options are To split the file, however it will need to be "glued" back together to be usable In my opinion, better option is reformat the drive in NTFS, this way it can be usable on both Windows and Linux and you don't have the 4GB file limit


0

do you still have windows , are you dual booting ? the files from windows will not magically appear in your new Ubuntu system , it is a NEW clean system . if you still have windows you can access the files on the windows partition from Ubuntu but if you installed over windows (used the hole disk) they are gone


4

When deleting from the GUI, the file gets moved to the trash (inode update), so no modification/deletion, so no notification! When rm file from the cli, it gets deleted, so you get a notification...


1

When you open the folder properties, the displayed number will not contain hidden files. In Unix/Linux dotfiles refers to files/directories with a dot (.) prepended to their name (i.e. .bashrc). The leading dot is used as an indicator to not list these files normally but only when they are specifically requested like pressing Ctrl+H in Nautilus or typing ls ...


0

@hear I use system links to keep my /home/vinny directory’s on the larger drive . make a folder/directory on the large drive ,say Ubuntu and move your Documents,pictures,Video,Music,ect,ect folders to it ,,then link them back to your home . this way the data is on the large drive and whenever you add things to /home/you/Documents it's actually stored on the ...


1

Move /home, /var and/or /usr folder to external drive To free up some space, you can move your /home, /var and/or /usr folder to your 1TB drive: Boot into an Ubuntu live CD/USB Shrink the other partitions on the 1TB disk to make space for the new partitions Make new partitions for /home, /var and/or /usr, depending on your preference. They should be of ...


14

/dev/null is a special kind of file called "device file". Device files act as a interface to some kernel functions. They just occupy the space that is needed for a directory entry ("inode") but don't have any real content and don't have an actual file size. Other device files are e.g. /dev/sda (generally a HDD or SSD), /dev/zero (a file that generates ...


36

/dev/null is not really a file. It's a character device! $ ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Apr 10 09:53 /dev/null The first letter c of the permissions string (crw-rw-rw-) indicates this. For files, it would be a - instead. So in easy words: /dev/null is not a file but a virtual device mapped to this path in the file system which has the only ...


3

Add yourself permanently to the www-data group: adduser <username> www-data <username> = your username Or, alternatively, use sudo to temporarily launch subl as a member of the www-data group: sudo -g www-data subl <file_path> <file_path> = your file's path


0

I found the answer to my own question: https://developer.ubuntu.com/api/qml/sdk-1.0/Ubuntu.Content.ContentHub/


5

For some of the system default apps you can go to System Settings/Details e.g.: Or for more advanced you can open Ubuntu-Tweak and go to Admins section and click on File Type Manager: To install Ubuntu-Tweak: sudo add-apt-repository ppa:tualatrix/ppa sudo apt-get update sudo apt-get install ubuntu-tweak P.S. I see you edited a bit your question you ...


0

You can use the settings editor. Choose the Mime type, and search for images: Then change the relevant types to your likings: As you can guess I use Shotwell to crob images. Change those to your favorit app!


0

for this wasn't working. another solution i read was to set "LANG=en_US.UTF-8" in the "/etc/environment" file. But wasn't working neither. What was working for me was to open the crontab file with crontab -e and set at the beginning: LANG=de_DE.UTF-8 LANGUAGE=de LC_CTYPE=de_DE.UTF-8 PYTHONIOENCODING=utf8 Which also sets the environment variable. ...


1

Create a file /usr/lib/libreoffice/share/registry/disable-file-locking.xcd gedit /usr/lib/libreoffice/share/registry/disable-file-locking.xcd or nano /usr/lib/libreoffice/share/registry/disable-file-locking.xcd and add the following code: <?xml version="1.0" encoding="UTF-8"?> <oor:data xmlns:oor="http://openoffice.org/2001/registry"> ...


1

You can go back to the default state by removing changes made to the file /etc/chromium-browser/default. If you want to keep the current file /etc/chromium-browser/default, then rename the file as something else than default e.g. default.bak. Now create a file named default having nothing or only the line CHROMIUM_FLAGS="". To summarize: sudo mv ...



Top 50 recent answers are included