Tag Info

New answers tagged

0

The question is ambiguous, so I'm going to assume you want to zip all files with a basename matching *.mp4 found under the current directory into a single archive. You can do this as follows: zip my_mp4_archive.zip $(find . -name "*.mp4")


0

If you are getting the error: -bash: source/opt/ros/jade/setup.bash: No such file or directory then you must have typed: echo "source/opt/ros/jade/setup.bash" >> ~/.bashrc instead of : echo "source /opt/ros/jade/setup.bash" >> ~/.bashrc Notice the space between source and /opt.


1

To remaster an ISO do the following: *Also all commands are performed as root Copy the ISO to the tmp directory: mkdir /tmp/cdrom mkdir /tmp/iso mount -o loop Linux.iso /tmp/cdrom cp -a /tmp/cdrom /tmp/iso umount /tmp/cdrom cd into /tmp/iso and copy .*sqfs or *.squashfs to /tmp unsquashfs /tmp/*.sqfs cd /tmp/squashfs-root/ Make Changes now Then... ...


5

According to Bash prompt Howto: [21:58:33][giles@nikola:~]$ PS1="[\$(date +%H%M)][\u@\h:\w]\$ " [2159][giles@nikola:~]$ ls bin mail [2200][giles@nikola:~]$ It's important to notice the backslash before the dollar sign of the command substitution. Without it, the external command is executed exactly once: when the PS1 string is read into the ...


3

When you used $(..) in double-quotes, the shell evaluated the command substitution before assigning to PS1. Thus, PS1 contained only the output, not the command substitution itself. Instead, either use single-quotes, or escape the $, so that the string is passed as-is to PS1, and then evaluated when the prompt is set: $ PS1='$(pwd) $ ' /tmp $ cd /var /var $ ...


1

Basically, it would be like following through https://help.ubuntu.com/community/LiveCDCustomization to customize that ISO file. Mainly, you would be extracting the filesystem.squashfs and modifying it. The home folder within the filesystem.squashfs is /etc/skel/, that is where you would put your .bashrc, etc. files. The filesystem.squashfs would then have ...


0

You can mount the iso, edit it, and then save it. Then remount it to make sure your edits were retained, and if so, burn and test! If all goes well, you've done it! And just put the .bashrc in the home directory where the original was.


0

Put it into .bash_profile it is used for login shells, .bashrc is used more widely, eg also if you use scp from another machine, and, if you generate output in the .bashrc file, any scp and other will fail silently. they don't expect any output. .bash_profile would be only executed on login shells, eg virtual terminal, xterm,.....


4

The variable $AMBERHOME contains an invalid folder name. Therefore the command cd can't work. Every time you run the command export AMBERHOME=$AMBERHOME/home/rcibsd/amber14, AMBERHOME will be set to the old value of AMBERHOME and the string /home/rcibsd/amber14 Example % FOO="/bar" % FOO="$FOO/bar" % FOO="$FOO/bar" % FOO="$FOO/bar" % echo $FOO ...


2

The simplest, working answer to the question "How to save terminal history manually?": history -a It may also be worth to consider switching to zsh, which has setopt inc_append_history ("save every command before it is executed"). And this question is relevant as well: Is it possible to make writing to .bash_history immediate?



Top 50 recent answers are included