Tag Info

Hot answers tagged

3

tee is designed to split STDIN into a file and back out to STDOUT. In simple terms, just pipe it through, like so: nmap www.somesite.com | tee file.txt The current accepted alternative involves running nmap twice which is a horrible idea. You'd be better off running it once to file and then outputting the file. nmap www.somesite.com > file.txt; cat ...


2

find . -type f -exec sh -c 'base=$(echo $1 | grep -oP "(?<=\./).*(?=\.[^\.]*$)"); mkdir -p "${base}"; mv "$1" "$base"' . {} \; Explanation find . -type f This script will operate on all "regular" files (i.e. will not work on the current directory .). -exec sh -c '...' . {} \; execute the '...' part, with the filename fed to the script as an argument ...


2

Anything related to a user is stored in their home. That includes configurations, settings, the theme you chose but also bookmarks and so on. So there are lots of files in there you need not worry about. Leave them as they are. Deleting them will delete your configuration for the program you deleted it for. If you delete the chromuim directory you ...


2

I'm pretty sure Nautilus can show a folder tree in it's side pane, it's switchable between the "Places" or a tree (maybe other options too). http://askubuntu.com/a/339138 [May even be a duplicate Q] As can Thunar (XFCE file manager)


2

I'd recommend Thunar. You can get the tree view in the side panel by just setting this mode in View -> Side Pane -> Tree:


1

you are talking about a file server with apache Just do as follows. Open your terminal and do as below sudo apt-get install apache2 then sudo service apache2 start Just open your browser and type as localhost and press enter. If you see You have installed your webserver successfully. Now we have to setup a file server for you. Now open ...


1

That is exactly what tee is for. Why do you not want to use that? An alternative might be to capture the output, and echo it twice: output=$(nmap localhost) echo "$output" echo "$output" > somefile.txt However, in the special case of nmap, you can take advantage of it's output option -ox : OUTPUT: -oN/-oX/-oS/-oG <file>: Output ...


1

I believe you are looking for something like this: ls -d /home/$USER/Documents/*/ it will list all dirs in Documents. The last "/" makes it "directories" only.


1

Helps you to integrate UltraCopier on the Nautilus/Nemo file browser. Ultracopier: Is included on the official ubuntu universe repo and is added as a dependency of the extension, so will be automatically installed. After install: Select one option Restart your computer(recommended) Logout and login Execute for: Nemo: nemo -q (save your work ...


1

Easist way is to used this addon for Firefox: https://addons.mozilla.org/en-US/firefox/addon/soundcloud-downloader-techn/


1

BleachBit 1.2 fixes several problems with wiping free disk space including a way to prevent this, so I assume you are using an older version. Now that you have this problem you just have to let rm -rf run. Linux file systems can take a very long time to delete many files, even if they are empty. It may look like nothing is happening for a while, but you ...


1

On linux directory modification time change if you: add a new file remove an existent a file or rename a file in it If you change content of existent file, this is not reflected up to directory. Because of this, I suggest to use these commands: find /path/to/folder -type f -mtime +30 -delete this command remove recursively file older than 30 ...


1

Open a terminal window. By default, you will be in your home directory. cd Desktop ls cat "filename"



Only top voted, non community-wiki answers of a minimum length are eligible