linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

BudgieMania, in Why do you use the terminal?

because every additional layer of abstraction disrupts communication with the Machine Spirit even further

Crul,
juh, in Looking for input regarding finding an IDE (spoilers: involves Emacs and Vim)

I tried several editors but always come back to emacs. When I used LaTeX because of AucTeX, then I discovered org-mode and now I do my writing with org-mode and ConTeXt.

throwawayish,

I tried several editors but always come back to emacs.

Have you used Helix and/or (Neo)Vim? If so, would you be so kind to share your experiences?

magic_lobster_party, in Why do you use the terminal?

The terminal is a power tool. I can do stuff with it that’s slow or inconvenient with graphical tools.

I really like the piping capabilities of the Linux terminal. Incredibly useful for text processing.

TheEntity, in Why do you use the terminal?

Even back in the day when I still used Windows (and GUI almost exclusively) I browsed my filesystems like I'd use a terminal with tab-completion. I'd press the first few letters of the file/directory I was looking for and press enter, rinse and repeat. I knew my file organization by heart anyway. It's only natural for me to drop the GUIs for such use cases.

popekingjoe, in Why do you use the terminal?
@popekingjoe@lemmy.world avatar

Because it just works. No bullshit. No bloat. Just fast and efficient.

Rustmilian, (edited ) in How can I migrate my existing /home/ directory to another drive?
@Rustmilian@lemmy.world avatar

In what way? Like a home partition?
Home should just be a folder you can copy over in most cases.
If it’s a separate partition, most distros can just install to the other partitions without overwriting the home partition.

eleitl,

SELinux rights can be a problem.

seasick, in How can I migrate my existing /home/ directory to another drive?

Unsure what exactly you want to do, but this might be of help help.ubuntu.com/community/Partitioning/…/Moving

chitak166, in Why do you use the terminal?

Because whatever I’m trying to do doesn’t have a GUI option yet.

GalacticTaterTot, in Why do you use the terminal?

I wanted to see what all this talk about vim was and now I’ve been stuck for 3 years.

harsh3466,

:wq

;)

andrew,
@andrew@lemmy.stuart.fun avatar

<span style="color:#323232;">➜  ~  ;)                                                                                                                      zsh: parse error near `)'
</span>
yetAnotherUser, in "Combokeys" instead of hotkeys. [Feature/new command suggestion]

Imagine doing a 720 motion input for turning off your computer

mvirts,

Alt f2 xterm sudo poweroff password

Ctrl Alt f2 sudo poweroff password

SysRq o

GentriFriedRice, in Why do you use the terminal?

Otherwise I’d have to install a gui

blotz, (edited ) in How can I migrate my existing /home/ directory to another drive?
@blotz@lemmy.world avatar

Log in as root to avoid trying to make sure no files in /home/ are being read/written to.

Step 1: copy data to new drive. Mount new drive to /mnt/. cp -ra /home/* /mnt/. -a means that all permissions remain the same which will mean that your user can still read them. Check the man page for more details. This command will take a while. Use -v to see progress. You should see a folder with your username appear.

Step 2. Prepare /home for new drive. Move the files to a new folder. This is done to make sure you can still easily go back. mv /home/ /home-bak/ keep your old home dir safe in case a mistake was made. mkdir /home/.

Step 3. Mount your new drive. Mount your drive to /home/ and check if you can login. If everything went correctly, you should be able to just login. Finally you need to update your /etc/fstab to include this new drive. This will make sure your home drive mounts when you start your os. If everything is working, you can delete your home-bak as well.

blotz,
@blotz@lemmy.world avatar

This is a rough guide written on mobile. its probably best if someone double check some of this stuff before op tries it.

EdgeRunner,

I dont like the MV home. 😅

My advice :

  • login as root.
  • rsync -av /home, on the new disk.
  • fstab : comment the old home’s line, don’t delete, and copy it to change the identifier (path or uuid).
  • noob tips, add a new file in the new home.
  • login to check it is ok (with su - user), and check there is the new file.

You can now delete or keep it as a save.

blotz,
@blotz@lemmy.world avatar

the mv home is just renaming the folder so you can mount home in the same space. Rsync is probably better than cp but I didn’t want to suggest tools that op doesn’t have installed.

EdgeRunner,

Oh ok I see why no use of rsync. Clever.

I’ve read your solution, OP, you can go. Good tuto written on mobile.

Rustmilian, in nix warnings
@Rustmilian@lemmy.world avatar

None

lurch, (edited ) in How can I migrate my existing /home/ directory to another drive?

If you have a root account that allows logging in in text mode (no X no Wayland, no GUI), you would do that instead. These instructions are for that case. The home of root is /root , so it would not be affected.

Mount the new drive in an emty dir, if it isn’t already.

Make sure the other drives file system supports everything /home does.

Set the exact same permissions as /home/ in the new drives top level directory.

Add a line to fstab defining the other drive to be mounted automatically as /home .

Move the contents of /home over to the other drive.

Umount the other drive.

Enter just: mount /home

This should work without errors and if you peek inside, you should see user dirs and it should show up if you enter just: mount

No reboot necessary, you could just log out, switch to the GUI login and log in as regular user. After your next boot you will find out if you edited your fstab correctly to auto mount it. If not just log in as root in text mode again and fix it.

Atemu, in nix warnings
@Atemu@lemmy.ml avatar

Check your nix.conf.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #