Search results
There is a useful option to du called the --apparent-size. It can be used to find the actual size of a file or directory (as opposed to its footprint on the disk) eg, a text file with just 4 characters will occupy about 6 bytes, but will still show up as taking up ~4K in a regular du -sh output.
A simple way to rename files and folders is with the mv command (shortened from “move”). Its primary purpose is moving files and folders, but it can also rename them since the act of renaming a file is interpreted by the filesystem as moving it from one name to another. The syntax is: where “file1.ext” is the “old” name of the file ...
253. Open your terminal with CTRL + ALT + T and do these following commands. To shutdown the system: sudo shutdown -h now. To restart: sudo reboot. & one more command for restart: sudo shutdown -r now. Another way as one of the user mentioned.
13 de oct. de 2017 · if the zip file is protected with some password, then use the following command : sudo ubzip -P zip_file_name.zip. Please make sure you use -P (capital P) not -p because the are different options. OPTION 2 – If the zip file is not present in the same directory and we want to extract/unzip the file in different directory.
On mac os and iTERM, cmd + k does the trick for me. To clarify the MacOS commands: cmd.K - clear terminal, can't scroll up || ctrl.L - clear screen, scroll up for history || multiple ctrl.L - clear multiple screens. Can see the empty prompt for each clear, and will be able to see history prior to the number of clears.
14 de nov. de 2011 · ipconfig shows things like hostname, DNS servers, those are in a different place than just IP addresses in linux, so you will need a couple of commands. hostname. ifconfig -a. cat /etc/resolv.conf. That shows what I want to see 99% of the time, but ipconfig /all also shows things like DHCP lease times and servers.
24 de jun. de 2015 · 22. If you want to know the terminal program you are using, use this: ps -o 'cmd=' -p $ (ps -o 'ppid=' -p $$) Run this just after opening the terminal (shell) without forking any further shell instance. When you open up the terminal program, it basically spawns a child program, a shell.
24 de nov. de 2022 · Since you cannot open terminal, open a virtual terminal with ctrl + alt + f3 and login with your username and password. If your "orignal" version was not removed, you may tell the system to use it again: Select the Version 3.10.6, if provided. If the alternatives group was removed, that will not work.
8 de nov. de 2020 · 49. cd .. will bring you back exactly one directory up. You can string together those to go up multiple directories, e.g. up 3. cd ../../.. Instead of typing cd .. multiple times, what you could to is to place the function bellow into your .bashrc somewhere at the top, save .bashrc, and run source .bashrc or just close and reopen a terminal.
25 de sept. de 2020 · Here's what I eventually found that worked. It turned out when I updated python, it updated what gnome-terminal was set to. Here's what ya do: Ctrl + Alt + F3, this will open a terminal. login. type sudo vim /usr/bin/gnome-terminal substitute vim for whatever editor you have if needed.